mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Always 'release' the preview window even if it wasn't created.
* This helps on android where we might fail to create the preview window if our app isn't in the front, but we still want to let the base loop know that we're done previewing and let it go back to the generic splash screen.
This commit is contained in:
@@ -1891,9 +1891,11 @@ void ReplayProxy::ShutdownPreviewWindow()
|
||||
if(m_Replay && m_PreviewOutput)
|
||||
{
|
||||
m_Replay->DestroyOutputWindow(m_PreviewOutput);
|
||||
m_PreviewWindow(false, {});
|
||||
m_PreviewOutput = 0;
|
||||
}
|
||||
|
||||
if(m_PreviewWindow)
|
||||
m_PreviewWindow(false, {});
|
||||
}
|
||||
|
||||
void ReplayProxy::RefreshPreviewWindow()
|
||||
|
||||
@@ -132,7 +132,7 @@ void DisplayGenericSplash()
|
||||
EGLDisplay eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
ANativeWindow *previewWindow = android_state->window;
|
||||
|
||||
if(eglDisplay)
|
||||
if(eglDisplay && previewWindow)
|
||||
{
|
||||
int major = 0, minor = 0;
|
||||
eglInitialize(eglDisplay, &major, &minor);
|
||||
|
||||
Reference in New Issue
Block a user