Fixes compiling with GLES and X11

This commit is contained in:
gameblabla 2018-08-20 13:17:01 +02:00
parent 223cd74824
commit 8a53efec62
No known key found for this signature in database
GPG Key ID: B24EFBB23B5F76CB
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}