Index: src/gpu/gl/GrGpuGL_program.cpp |
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp |
index beef93e96b7b25b09cc4d6587dac701194ac0d97..8cdceb86afea46c92dc00c27742bdb43386a8b6c 100644 |
--- a/src/gpu/gl/GrGpuGL_program.cpp |
+++ b/src/gpu/gl/GrGpuGL_program.cpp |
@@ -265,8 +265,10 @@ bool GrGpuGL::flushGraphicsState(DrawType type, const GrDeviceCoordTexture* dstC |
dstCopy, |
&fSharedGLProgramState); |
} |
+ |
+ GrGLRenderTarget* glRT = static_cast<GrGLRenderTarget*>(drawState.getRenderTarget()); |
this->flushStencil(type); |
- this->flushScissor(); |
+ this->flushScissor(glRT->getViewport(), glRT->origin()); |
this->flushAAState(type); |
SkIRect* devRect = NULL; |
@@ -277,7 +279,7 @@ bool GrGpuGL::flushGraphicsState(DrawType type, const GrDeviceCoordTexture* dstC |
} |
// This must come after textures are flushed because a texture may need |
// to be msaa-resolved (which will modify bound FBO state). |
- this->flushRenderTarget(devRect); |
+ this->flushRenderTarget(glRT, devRect); |
return true; |
} |