Skip to content

Commit

Permalink
Try make context as force current, helps to get current context back …
Browse files Browse the repository at this point in the history
…after suspend/resumes.
  • Loading branch information
tmeshkova committed Jul 3, 2014
1 parent f647134 commit 712ad5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions embedding/embedlite/embedthread/EmbedLiteCompositorParent.cpp
Expand Up @@ -187,6 +187,9 @@ bool EmbedLiteCompositorParent::RenderGL()

GLContext* context = static_cast<CompositorOGL*>(state->mLayerManager->GetCompositor())->gl();
NS_ENSURE_TRUE(context, false);
if (!context->IsCurrent()) {
context->MakeCurrent(true);
}
NS_ENSURE_TRUE(context->IsCurrent(), false);

{
Expand Down

0 comments on commit 712ad5a

Please sign in to comment.