Index: src/gpu/gl/GrGpuGL_program.cpp |
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp |
index 5b05dbd88b36cb427d7afafb3040ead9f76a4a9c..be21abf3e9817a14a5722ac3dc62a7c91e7e36f0 100644 |
--- a/src/gpu/gl/GrGpuGL_program.cpp |
+++ b/src/gpu/gl/GrGpuGL_program.cpp |
@@ -205,10 +205,6 @@ GrGLProgram* GrGpuGL::ProgramCache::getProgram(const GrGLProgramDesc& desc, |
bool GrGpuGL::flushGraphicsState(DrawType type, const GrDeviceCoordTexture* dstCopy) { |
const GrDrawState& drawState = this->getDrawState(); |
- const GrOptDrawState& optState = *this->getDrawState().createOptState(); |
- optState.unref(); |
- const GrOptDrawState& optState2 = *this->getDrawState().createOptState(); |
- optState2.unref(); |
// GrGpu::setupClipAndFlushState should have already checked this and bailed if not true. |
SkASSERT(drawState.getRenderTarget()); |