Skip to content

Commit

Permalink
[embedlite] Do not publish frame if screen is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Raine Makelainen committed Jan 12, 2015
1 parent 44117d7 commit 760553e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -202,7 +202,7 @@ bool EmbedLiteCompositorParent::RenderGL()
if (context->IsOffscreen()) {
GLScreenBuffer* screen = context->Screen();
MOZ_ASSERT(screen);
if (!screen->PublishFrame(screen->Size())) {
if (screen->Size().IsEmpty() || !screen->PublishFrame(screen->Size())) {
NS_ERROR("Failed to publish context frame");
return false;
}
Expand Down

0 comments on commit 760553e

Please sign in to comment.