This commit is contained in:
Camilla Berglund 2015-03-07 22:33:04 +01:00
parent 6e9788a9e6
commit c1dce0f617

View File

@ -104,16 +104,13 @@ GLboolean _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig)
// OpenGL 1.x series ended with version 1.5 // OpenGL 1.x series ended with version 1.5
// OpenGL 2.x series ended with version 2.1 // OpenGL 2.x series ended with version 2.1
// OpenGL 3.x series ended with version 3.3 // OpenGL 3.x series ended with version 3.3
// For now, let everything else through
_glfwInputError(GLFW_INVALID_VALUE, _glfwInputError(GLFW_INVALID_VALUE,
"Invalid OpenGL version %i.%i requested", "Invalid OpenGL version %i.%i requested",
ctxconfig->major, ctxconfig->minor); ctxconfig->major, ctxconfig->minor);
return GL_FALSE; return GL_FALSE;
} }
else
{
// For now, let everything else through
}
if (ctxconfig->profile) if (ctxconfig->profile)
{ {
@ -156,16 +153,13 @@ GLboolean _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig)
// OpenGL ES 1.0 is the smallest valid version // OpenGL ES 1.0 is the smallest valid version
// OpenGL ES 1.x series ended with version 1.1 // OpenGL ES 1.x series ended with version 1.1
// OpenGL ES 2.x series ended with version 2.0 // OpenGL ES 2.x series ended with version 2.0
// For now, let everything else through
_glfwInputError(GLFW_INVALID_VALUE, _glfwInputError(GLFW_INVALID_VALUE,
"Invalid OpenGL ES version %i.%i requested", "Invalid OpenGL ES version %i.%i requested",
ctxconfig->major, ctxconfig->minor); ctxconfig->major, ctxconfig->minor);
return GL_FALSE; return GL_FALSE;
} }
else
{
// For now, let everything else through
}
} }
if (ctxconfig->robustness) if (ctxconfig->robustness)