Skip to content

Commit

Permalink
Added texture unit store/restore to keep embedded context in sane state
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed Mar 27, 2014
1 parent e21be96 commit 5f632c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions embedding/embedlite/embedthread/EmbedLiteCompositorParent.cpp
Expand Up @@ -116,7 +116,10 @@ bool EmbedLiteCompositorParent::RenderGL()

{
ScopedScissorRect autoScissor(context);
GLenum oldTexUnit;
context->GetUIntegerv(LOCAL_GL_ACTIVE_TEXTURE, &oldTexUnit);
CompositorParent::Composite();
context->fActiveTexture(oldTexUnit);
}

if (context->IsOffscreen()) {
Expand Down

0 comments on commit 5f632c5

Please sign in to comment.