aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/gfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/android/gfx.cpp')
-rw-r--r--backends/platform/android/gfx.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp
index 96ba5e729a..15e517a07f 100644
--- a/backends/platform/android/gfx.cpp
+++ b/backends/platform/android/gfx.cpp
@@ -198,6 +198,9 @@ void OSystem_Android::updateScreen() {
GLTHREADCHECK;
+ if (!JNI::haveSurface())
+ return;
+
if (!_force_redraw &&
!_game_texture->dirty() &&
!_overlay_texture->dirty() &&