From c1dce0f617ae7bc6b38e759655718105c3ed9463 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sat, 7 Mar 2015 22:33:04 +0100 Subject: [PATCH] Cleanup. --- src/context.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/context.c b/src/context.c index 72bb72a6..8ca73411 100644 --- a/src/context.c +++ b/src/context.c @@ -104,16 +104,13 @@ GLboolean _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig) // OpenGL 1.x series ended with version 1.5 // OpenGL 2.x series ended with version 2.1 // OpenGL 3.x series ended with version 3.3 + // For now, let everything else through _glfwInputError(GLFW_INVALID_VALUE, "Invalid OpenGL version %i.%i requested", ctxconfig->major, ctxconfig->minor); return GL_FALSE; } - else - { - // For now, let everything else through - } if (ctxconfig->profile) { @@ -156,16 +153,13 @@ GLboolean _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig) // OpenGL ES 1.0 is the smallest valid version // OpenGL ES 1.x series ended with version 1.1 // OpenGL ES 2.x series ended with version 2.0 + // For now, let everything else through _glfwInputError(GLFW_INVALID_VALUE, "Invalid OpenGL ES version %i.%i requested", ctxconfig->major, ctxconfig->minor); return GL_FALSE; } - else - { - // For now, let everything else through - } } if (ctxconfig->robustness)