mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Java/GL: Add null check for surface
This commit is contained in:
parent
db245e1b34
commit
0198f7c55d
1 changed files with 4 additions and 2 deletions
|
@ -767,8 +767,10 @@ public abstract class NativeActivity extends Activity {
|
|||
nativeRenderer = null;
|
||||
}
|
||||
}
|
||||
mGLSurfaceView.onDestroy();
|
||||
mGLSurfaceView = null;
|
||||
if (mGLSurfaceView != null) {
|
||||
mGLSurfaceView.onDestroy();
|
||||
mGLSurfaceView = null;
|
||||
}
|
||||
} else {
|
||||
if (mSurfaceView != null) {
|
||||
mSurfaceView.onDestroy();
|
||||
|
|
Loading…
Add table
Reference in a new issue