Bug 1329362 - part 3, Convert GLContext::RenewSurface to use CompositorWidget in place of nsIWidget r=kats

This commit is contained in:
Randall Barker
2017-01-20 15:31:02 -08:00
parent 13a12ef164
commit fdf13e86e0
5 changed files with 14 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ CompositingRenderTargetOGL::BindRenderTarget()
// The main framebuffer (0) of non-offscreen contexts
// might be backed by a EGLSurface that needs to be renewed.
if (mFBO == 0 && !mGL->IsOffscreen()) {
mGL->RenewSurface(mCompositor->GetWidget()->RealWidget());
mGL->RenewSurface(mCompositor->GetWidget());
result = mGL->fCheckFramebufferStatus(LOCAL_GL_FRAMEBUFFER);
}
if (result != LOCAL_GL_FRAMEBUFFER_COMPLETE) {