Bug 1128019 - Init SCISSOR_BOX with initial width and height. - r=kamidphish

This commit is contained in:
Jeff Gilbert 2015-03-11 20:08:41 -07:00
parent b8ab2f2251
commit 64406cbd70

View File

@ -921,6 +921,8 @@ WebGLContext::SetDimensions(int32_t signedWidth, int32_t signedHeight)
mViewportWidth = mWidth;
mViewportHeight = mHeight;
gl->fScissor(0, 0, mWidth, mHeight);
// Make sure that we clear this out, otherwise
// we'll end up displaying random memory
gl->fBindFramebuffer(LOCAL_GL_FRAMEBUFFER, 0);