This commit is contained in:
Camilla Berglund
2016-03-28 20:11:22 +02:00
parent 925208d28f
commit f96d865b93
8 changed files with 9 additions and 15 deletions
+3 -3
View File
@@ -115,18 +115,18 @@ static GLFWbool chooseFBConfig(const _GLFWfbconfig* desired, GLXFBConfig* result
if (_glfw.glx.ARB_framebuffer_sRGB || _glfw.glx.EXT_framebuffer_sRGB)
u->sRGB = getFBConfigAttrib(n, GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB);
u->glx = n;
u->handle = (uintptr_t) n;
usableCount++;
}
closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount);
if (closest)
*result = closest->glx;
*result = (GLXFBConfig) closest->handle;
XFree(nativeConfigs);
free(usableConfigs);
return closest ? GLFW_TRUE : GLFW_FALSE;
return closest != NULL;
}
// Create the OpenGL context using legacy API