mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Fix offscreen render setting GLWindowingData::wnd=0, an error condition.
This commit is contained in:
committed by
Baldur Karlsson
parent
3c05b25653
commit
61606d8aea
@@ -161,7 +161,6 @@ struct GLWindowingData
|
||||
egl_ctx = 0;
|
||||
egl_dpy = 0;
|
||||
egl_wnd = 0;
|
||||
wnd = 0;
|
||||
}
|
||||
|
||||
void SetCtx(void *c) { egl_ctx = (void *)c; }
|
||||
@@ -172,8 +171,11 @@ struct GLWindowingData
|
||||
EGLContext egl_ctx;
|
||||
};
|
||||
EGLDisplay egl_dpy;
|
||||
EGLSurface egl_wnd;
|
||||
ANativeWindow *wnd;
|
||||
union
|
||||
{
|
||||
EGLSurface egl_wnd;
|
||||
void *wnd;
|
||||
};
|
||||
};
|
||||
|
||||
#else
|
||||
|
||||
@@ -276,9 +276,6 @@ public:
|
||||
ret.egl_dpy = eglDisplay;
|
||||
ret.egl_ctx = ctx;
|
||||
ret.egl_wnd = surface;
|
||||
#if ENABLED(RDOC_ANDROID)
|
||||
ret.wnd = (ANativeWindow *)window;
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user