Skip to content

Commit

Permalink
Check GL context for current in Render to avoid unexpected situation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed Jun 17, 2014
1 parent 82d344f commit 375ab9e
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -187,6 +187,7 @@ bool EmbedLiteCompositorParent::RenderGL()

GLContext* context = static_cast<CompositorOGL*>(state->mLayerManager->GetCompositor())->gl();
NS_ENSURE_TRUE(context, false);
NS_ENSURE_TRUE(context->IsCurrent(), false);

{
ScopedScissorRect autoScissor(context);
Expand Down

0 comments on commit 375ab9e

Please sign in to comment.