Index: src/gpu/gl/debug/GrDebugGL.cpp |
diff --git a/src/gpu/gl/debug/GrDebugGL.cpp b/src/gpu/gl/debug/GrDebugGL.cpp |
index 03ff36daf2789c8aafcefbcbe7c5d7c6d7a4849e..71607c8b0d02253bbc543ab22ae41f1b5fda22f4 100644 |
--- a/src/gpu/gl/debug/GrDebugGL.cpp |
+++ b/src/gpu/gl/debug/GrDebugGL.cpp |
@@ -40,7 +40,8 @@ GrDebugGL::GrDebugGL() |
, fRenderBuffer(NULL) |
, fProgram(NULL) |
, fTexture(NULL) |
- , fVertexArray(NULL) { |
+ , fVertexArray(NULL) |
+ , fAbandoned(false) { |
for (int i = 0; i < kDefaultMaxTextureUnits; ++i) { |
@@ -204,8 +205,10 @@ void GrDebugGL::useProgram(GrProgramObj *program) { |
void GrDebugGL::report() const { |
for (int i = 0; i < fObjects.count(); ++i) { |
- GrAlwaysAssert(0 == fObjects[i]->getRefCount()); |
GrAlwaysAssert(0 < fObjects[i]->getHighRefCount()); |
- GrAlwaysAssert(fObjects[i]->getDeleted()); |
+ if (!fAbandoned) { |
+ GrAlwaysAssert(0 == fObjects[i]->getRefCount()); |
+ GrAlwaysAssert(fObjects[i]->getDeleted()); |
+ } |
} |
} |