Skip to content

Commit

Permalink
fix(OESRender): gl background be set to black
Browse files Browse the repository at this point in the history
  • Loading branch information
I-m-SuperMan authored and pingkai committed Aug 3, 2020
1 parent 49a8fab commit fcda864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/render/video/glRender/OESProgramContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ int OESProgramContext::updateFrame(std::unique_ptr<IAFFrame> &frame) {
float color[4] = {0.0f,0.0f,0.0f,1.0f};
cicada::convertToGLColor(mBackgroundColor , color);
glClearColor(color[0], color[1], color[2], color[3]);
mBackgroundColorChanged = true;
mBackgroundColorChanged = false;
}

glClear(GL_COLOR_BUFFER_BIT);
Expand Down

0 comments on commit fcda864

Please sign in to comment.