mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-03-27 13:50:22 -06:00
nullptr check on update_surface
This commit is contained in:
parent
7a60160f68
commit
64cb0b57fb
@ -25,9 +25,10 @@ bool EmuWindow_Android::OnSurfaceChanged(ANativeWindow* surface) {
|
||||
render_window = surface;
|
||||
window_info.type = Frontend::WindowSystemType::Android;
|
||||
window_info.render_surface = surface;
|
||||
window_width = ANativeWindow_getWidth(surface);
|
||||
window_height = ANativeWindow_getHeight(surface);
|
||||
|
||||
if (surface != nullptr) {
|
||||
window_width = ANativeWindow_getWidth(surface);
|
||||
window_height = ANativeWindow_getHeight(surface);
|
||||
}
|
||||
StopPresenting();
|
||||
OnFramebufferSizeChanged();
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user