Skip to content

Commit

Permalink
fix(GLRender): remove old program when create OES surface
Browse files Browse the repository at this point in the history
  • Loading branch information
I-m-SuperMan authored and pingkai committed Feb 18, 2020
1 parent adf3758 commit 46b5bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/render/video/glRender/GLRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ bool GLRender::renderActually()
#ifdef __ANDROID__

if (needCreateOutTexture) {
mPrograms.erase(AF_PIX_FMT_CICADA_MEDIA_CODEC);
IProgramContext *programContext = getProgram(AF_PIX_FMT_CICADA_MEDIA_CODEC);
needCreateOutTexture = false;
mCreateOutTextureCondition.notify_all();
Expand Down Expand Up @@ -379,7 +380,6 @@ bool GLRender::renderActually()
mContext->Present(mGLSurface);

if (mProgramContext != nullptr) {
mPrograms.erase(mProgramFormat);
mProgramFormat = -1;
mProgramContext = nullptr;
}
Expand Down

0 comments on commit 46b5bd5

Please sign in to comment.