mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Fix case when GLES is enabled but GL is disabled on linux, or vice-versa
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -168,7 +168,7 @@ struct GLWindowingData
|
||||
typedef void *GLESDisplayPtr;
|
||||
typedef void *GLESContextPtr;
|
||||
typedef void *GLESWindowPtr;
|
||||
typedef vpod *GLESConfigPtr;
|
||||
typedef void *GLESConfigPtr;
|
||||
#endif
|
||||
|
||||
union
|
||||
|
||||
Reference in New Issue
Block a user