Skip to content

Commit

Permalink
fix start thread
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreK38 committed Sep 25, 2024
1 parent 507f9c8 commit 098d344
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ public void setScreenWidthAndHeight(final int surfaceWidth, final int surfaceHei
@Override
public void onSurfaceCreated(final GL10 GL10, final EGLConfig EGLConfig) {
AxmolRenderer.nativeInit(this.mScreenWidth, this.mScreenHeight);
mRendererThread.start();


if (mNativeInitCompleted) {
// This must be from an OpenGL context loss
nativeOnContextLost();
} else {
mNativeInitCompleted = true;
mRendererThread.start();
}
}

Expand Down

0 comments on commit 098d344

Please sign in to comment.