aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGpuGLShaders.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gl/GrGpuGLShaders.cpp')
-rw-r--r--src/gpu/gl/GrGpuGLShaders.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gpu/gl/GrGpuGLShaders.cpp b/src/gpu/gl/GrGpuGLShaders.cpp
index 30b260b340..0589cfe3c6 100644
--- a/src/gpu/gl/GrGpuGLShaders.cpp
+++ b/src/gpu/gl/GrGpuGLShaders.cpp
@@ -701,9 +701,6 @@ bool GrGpuGLShaders::flushGraphicsState(GrPrimitiveType type) {
const GrDrawState& drawState = this->getDrawState();
if (fDirtyFlags.fRenderTargetChanged) {
- // our coords are in pixel space and the GL matrices map to NDC
- // so if the viewport changed, our matrix is now wrong.
- fHWDrawState.setViewMatrix(GrMatrix::InvalidMatrix());
// we assume all shader matrices may be wrong after viewport changes
fProgramCache->invalidateViewMatrices();
}