mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 05:36:35 +00:00
Cleaning conditional directives that break statements.
This commit is contained in:
parent
fdc65e49e4
commit
f31ccc8ab2
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user