Fix case when GLES is enabled but GL is disabled on linux, or vice-versa

This commit is contained in:
baldurk
2018-07-06 23:56:52 +01:00
parent e5f6b24696
commit ff61bf8def
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ HOOK_EXPORT EGLBoolean EGLAPIENTRY eglMakeCurrent(EGLDisplay display, EGLSurface
data.egl_dpy = display;
data.egl_wnd = draw;
data.egl_ctx = ctx;
data.wnd = eglhook.windows[draw];
data.wnd = (decltype(data.wnd))eglhook.windows[draw];
if(!data.wnd)
{
+1 -1
View File
@@ -226,7 +226,7 @@ class EGLPlatform : public GLPlatform
RDCERR("Couldn't create a suitable PBuffer");
}
ret.wnd = window;
ret.wnd = (decltype(ret.wnd))window;
ret.egl_wnd = surface;
return ret;
+1 -1
View File
@@ -168,7 +168,7 @@ struct GLWindowingData
typedef void *GLESDisplayPtr;
typedef void *GLESContextPtr;
typedef void *GLESWindowPtr;
typedef vpod *GLESConfigPtr;
typedef void *GLESConfigPtr;
#endif
union