Cleaning conditional directives that break statements.

This commit is contained in:
lzmths 2015-12-10 18:53:26 -03:00
parent fdc65e49e4
commit f31ccc8ab2

View File

@ -500,11 +500,13 @@ int _glfwCreateContext(_GLFWwindow* window,
//
void _glfwDestroyContext(_GLFWwindow* window)
{
int test = 1;
#if defined(_GLFW_X11)
// NOTE: Do not unload libGL.so.1 while the X11 display is still open,
// as it will make XCloseDisplay segfault
if (window->context.api != GLFW_OPENGL_API)
test = window->context.api != GLFW_OPENGL_API;
#endif // _GLFW_X11
if (test)
{
if (window->context.egl.client)
{