Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 85e0875

Browse files
committed
[egl] add additional check against eglcontext
1 parent e57c2de commit 85e0875

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/renderer/glsurfaceview/MapboxGLSurfaceView.java

+4
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,10 @@ boolean createSurface() {
432432
Log.e(TAG, "mEglConfig not initialized");
433433
return false;
434434
}
435+
if (mEglContext == null) {
436+
Log.e(TAG, "mEglContext not initialized");
437+
return false;
438+
}
435439

436440
/*
437441
* The window size has changed, so we need to create a new

0 commit comments

Comments
 (0)