mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 21:56:36 +00:00
Merge f31ccc8ab2
into 5dc9d0f581
This commit is contained in:
commit
030a0d7f6e
@ -506,11 +506,13 @@ GLFWbool _glfwCreateContextEGL(_GLFWwindow* window,
|
|||||||
//
|
//
|
||||||
void _glfwDestroyContextEGL(_GLFWwindow* window)
|
void _glfwDestroyContextEGL(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
|
int test = 1;
|
||||||
#if defined(_GLFW_X11)
|
#if defined(_GLFW_X11)
|
||||||
// NOTE: Do not unload libGL.so.1 while the X11 display is still open,
|
// NOTE: Do not unload libGL.so.1 while the X11 display is still open,
|
||||||
// as it will make XCloseDisplay segfault
|
// as it will make XCloseDisplay segfault
|
||||||
if (window->context.api != GLFW_OPENGL_API)
|
test = window->context.api != GLFW_OPENGL_API;
|
||||||
#endif // _GLFW_X11
|
#endif // _GLFW_X11
|
||||||
|
if (test)
|
||||||
{
|
{
|
||||||
if (window->context.egl.client)
|
if (window->context.egl.client)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user