mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-06-01 12:15:03 -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;
|
render_window = surface;
|
||||||
window_info.type = Frontend::WindowSystemType::Android;
|
window_info.type = Frontend::WindowSystemType::Android;
|
||||||
window_info.render_surface = surface;
|
window_info.render_surface = surface;
|
||||||
window_width = ANativeWindow_getWidth(surface);
|
if (surface != nullptr) {
|
||||||
window_height = ANativeWindow_getHeight(surface);
|
window_width = ANativeWindow_getWidth(surface);
|
||||||
|
window_height = ANativeWindow_getHeight(surface);
|
||||||
|
}
|
||||||
StopPresenting();
|
StopPresenting();
|
||||||
OnFramebufferSizeChanged();
|
OnFramebufferSizeChanged();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user