You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Saki!
Thanks for the excellent library!
However on the One Plus One phone i discovered that the font textures in the app disappear after pause/resume (changing app).
Like this
I think the problem is that glDeleteTextures is called in the main thread.
CameraSurfaceRenderer.onSurfaceDestroyed is called in the main thread.
Changing its code solves the problem:
This way it is good:
public void onSurfaceDestroyed() {
if (DEBUG) Log.v(TAG, "onSurfaceDestroyed:");
GLSurfaceView parent = mWeakParent.get();
parent.queueEvent(new Runnable() {
@Override
public void run() {
if (mDrawer != null) {
mDrawer.release();
mDrawer = null;
}
if (mSTexture != null) {
mSTexture.release();
mSTexture = null;
}
GLDrawer2D.deleteTex(hTex);
}
});
}
The error no longer happens however i am not sure that this is the best solution.
I would appriciate your kind help.
Best regards
Tamás
The text was updated successfully, but these errors were encountered:
Hello Saki!
Thanks for the excellent library!
However on the One Plus One phone i discovered that the font textures in the app disappear after pause/resume (changing app).
Like this
I think the problem is that glDeleteTextures is called in the main thread.
CameraSurfaceRenderer.onSurfaceDestroyed is called in the main thread.
Changing its code solves the problem:
This way it is good:
The error no longer happens however i am not sure that this is the best solution.
I would appriciate your kind help.
Best regards
Tamás
The text was updated successfully, but these errors were encountered: