From f54b4e174d7429695ef30599df8f952fd7067deb Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 21 Aug 2013 11:56:48 +0200 Subject: [PATCH] Fixed error code for missing GLES. --- src/glx_context.c | 2 +- src/wgl_context.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glx_context.c b/src/glx_context.c index f0f7ed06..58c25757 100644 --- a/src/glx_context.c +++ b/src/glx_context.c @@ -386,7 +386,7 @@ int _glfwCreateContext(_GLFWwindow* window, !_glfw.glx.ARB_create_context_profile || !_glfw.glx.EXT_create_context_es2_profile) { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, + _glfwInputError(GLFW_API_UNAVAILABLE, "GLX: OpenGL ES requested but " "GLX_EXT_create_context_es2_profile is unavailable"); return GL_FALSE; diff --git a/src/wgl_context.c b/src/wgl_context.c index 51623de1..ccd7f574 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -529,7 +529,7 @@ int _glfwAnalyzeContext(const _GLFWwindow* window, !window->wgl.ARB_create_context_profile || !window->wgl.EXT_create_context_es2_profile) { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, + _glfwInputError(GLFW_API_UNAVAILABLE, "WGL: OpenGL ES requested but " "WGL_ARB_create_context_es2_profile is unavailable"); return _GLFW_RECREATION_IMPOSSIBLE;