Skip to content

Commit

Permalink
Android OpenGL surface view fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcristici committed Sep 24, 2024
1 parent 6c04191 commit 084c8ea
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void setEGLConfigChooser(GLSurfaceView.EGLConfigChooser configChooser) {

@Override
protected void createRenderThread() {
renderThread = new GLThread(viewWeakReference, renderThreadManager);
renderThread = new GLThread(viewWeakReference);
}

/**
Expand Down Expand Up @@ -323,8 +323,8 @@ static String formatEglError(String function, int error) {
* sGLThreadManager object. This avoids multiple-lock ordering issues.
*/
static class GLThread extends MapLibreSurfaceView.RenderThread {
GLThread(WeakReference<MapLibreGLSurfaceView> surfaceViewWeakRef, RenderThreadManager aRenderThreadManager) {
super(aRenderThreadManager);
GLThread(WeakReference<MapLibreGLSurfaceView> surfaceViewWeakRef) {
super(surfaceViewWeakRef.get().renderThreadManager);

mSurfaceViewWeakRef = surfaceViewWeakRef;
}
Expand Down

0 comments on commit 084c8ea

Please sign in to comment.