mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
fix preview window bug post-activity destruction
This commit is contained in:
committed by
Baldur Karlsson
parent
d257b5016d
commit
44f4fdafbc
@@ -126,10 +126,10 @@ void DisplayGenericSplash()
|
||||
|
||||
EGLDisplay eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
|
||||
ANativeWindow *previewWindow = android_state->window;
|
||||
|
||||
if(eglDisplay && previewWindow)
|
||||
if(eglDisplay && android_state && android_state->window)
|
||||
{
|
||||
ANativeWindow *previewWindow = android_state->window;
|
||||
|
||||
int major = 0, minor = 0;
|
||||
EGLBoolean initialised = eglInitialize(eglDisplay, &major, &minor);
|
||||
|
||||
@@ -333,7 +333,7 @@ WindowingData DisplayRemoteServerPreview(bool active, const rdcarray<WindowingSy
|
||||
|
||||
WindowingData ret = {WindowingSystem::Unknown};
|
||||
|
||||
if(android_state->window)
|
||||
if(android_state && android_state->window)
|
||||
ret = CreateAndroidWindowingData(android_state->window);
|
||||
|
||||
return ret;
|
||||
@@ -491,4 +491,5 @@ void android_main(struct android_app *state)
|
||||
} while(android_state->destroyRequested == 0);
|
||||
|
||||
ANDROID_LOG("android_main exiting");
|
||||
android_state = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user