Fixes compiling with GLES and X11
This commit is contained in:
parent
223cd74824
commit
8a53efec62
|
@ -381,12 +381,14 @@ void x11_window_destroy()
|
|||
}
|
||||
if (x11_disp)
|
||||
{
|
||||
#if !defined(GLES)
|
||||
if (x11_glc)
|
||||
{
|
||||
glXMakeCurrent((Display*)x11_disp, None, NULL);
|
||||
glXDestroyContext((Display*)x11_disp, (GLXContext)x11_glc);
|
||||
x11_glc = NULL;
|
||||
}
|
||||
#endif
|
||||
XCloseDisplay((Display*)x11_disp);
|
||||
x11_disp = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue