aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGpuGL.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-04 16:34:52 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-04 16:34:52 +0000
commit28b4bce1b13bf2e2b2e27d293a319133c17831cf (patch)
tree7ec84844780bda44c54df092933c4121b8f0697b /src/gpu/gl/GrGpuGL.cpp
parentc1992933f1d97edd3f2f4c7dcbd81ffea6f6c1d8 (diff)
Fix for performance regression due to r3832
Diffstat (limited to 'src/gpu/gl/GrGpuGL.cpp')
-rw-r--r--src/gpu/gl/GrGpuGL.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp
index a06b0084aa..9aa9b318f8 100644
--- a/src/gpu/gl/GrGpuGL.cpp
+++ b/src/gpu/gl/GrGpuGL.cpp
@@ -2239,8 +2239,10 @@ bool GrGpuGL::flushGLStateCommon(GrPrimitiveType type) {
// relies on detecting when the kModifyStencilClip_StateBit state has
// changed since the last draw.
fHWDrawState.copyStateFlags(*drawState);
+
+ // TODO: may no longer need this
// only GrInOrderDrawBuffer ever needs to ref/unref the textures
- fHWDrawState.disableState(GrDrawState::kTexturesNeedRef_StateBit);
+ fHWDrawState.disableBehavior(GrDrawState::kTexturesNeedRef_BehaviorBit);
return true;
}