Skip to content

Commit

Permalink
Java/GL: Add null check for surface
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 25, 2023
1 parent db245e1 commit 0198f7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions android/src/org/ppsspp/ppsspp/NativeActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,10 @@ protected void onDestroy() {
nativeRenderer = null;
}
}
mGLSurfaceView.onDestroy();
mGLSurfaceView = null;
if (mGLSurfaceView != null) {
mGLSurfaceView.onDestroy();
mGLSurfaceView = null;
}
} else {
if (mSurfaceView != null) {
mSurfaceView.onDestroy();
Expand Down

0 comments on commit 0198f7c

Please sign in to comment.