mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-09 22:01:36 +00:00
Fix bad alloc error when creating window surface
The screen doesn't refresh when changing between captures during replay on remote Android device because it fails to display the splash screen and the new preview window.
This commit is contained in:
1 parent
9e3a454a18
commit
d2cdca45a5
1 file changed
+3
@@ -131,6 +131,8 @@ void DisplayGenericSplash()
|
||||
eglBindAPI(EGL_OPENGL_ES_API);
|
||||
|
||||
EGLDisplay eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
eglTerminate(eglDisplay);
|
||||
|
||||
ANativeWindow *previewWindow = android_state->window;
|
||||
|
||||
if(eglDisplay && previewWindow)
|
||||
@@ -286,6 +288,7 @@ void main()
|
||||
eglMakeCurrent(eglDisplay, 0L, 0L, NULL);
|
||||
eglDestroyContext(eglDisplay, ctx);
|
||||
eglDestroySurface(eglDisplay, surface);
|
||||
eglTerminate(eglDisplay);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user