Bug 1087530 - Part 2: Set OGL Scissor during mClearOnBind. r=jmuizel
authorBenoit Girard <b56girard@gmail.com>
Wed, 19 Nov 2014 15:30:25 -0500
changeset 240839 d757834c073bab6ed5140bf20a730422901d5050
parent 240838 5f46b1defca53dcd14464d570325e5acc8bb4c5d
child 240840 b49cba7d3b2843593c31cf46ecc0b591cdf037d4
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmuizel
bugs1087530
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1087530 - Part 2: Set OGL Scissor during mClearOnBind. r=jmuizel
gfx/layers/opengl/CompositingRenderTargetOGL.cpp
--- a/gfx/layers/opengl/CompositingRenderTargetOGL.cpp
+++ b/gfx/layers/opengl/CompositingRenderTargetOGL.cpp
@@ -56,16 +56,17 @@ CompositingRenderTargetOGL::BindRenderTa
         NS_WARNING(msg.get());
       }
     }
 
     mCompositor->PrepareViewport(mInitParams.mSize);
   }
 
   if (mClearOnBind) {
+    mGL->fScissor(0, 0, mInitParams.mSize.width, mInitParams.mSize.height);
     mGL->fClearColor(0.0, 0.0, 0.0, 0.0);
     mGL->fClear(LOCAL_GL_COLOR_BUFFER_BIT);
     mClearOnBind = false;
   }
 }
 
 #ifdef MOZ_DUMP_PAINTING
 TemporaryRef<DataSourceSurface>