aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetOpList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrRenderTargetOpList.cpp')
-rw-r--r--src/gpu/GrRenderTargetOpList.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gpu/GrRenderTargetOpList.cpp b/src/gpu/GrRenderTargetOpList.cpp
index 4d309f407e..04472c58a0 100644
--- a/src/gpu/GrRenderTargetOpList.cpp
+++ b/src/gpu/GrRenderTargetOpList.cpp
@@ -227,8 +227,11 @@ void GrRenderTargetOpList::fullClear(GrRenderTargetContext* renderTargetContext,
// remove all the previously recorded ops and change the load op to clear with supplied
// color.
// TODO: this needs to be updated to use GrSurfaceProxy::UniqueID
- SkASSERT((fLastFullClearResourceID == renderTarget->uniqueID()) ==
- (fLastFullClearProxyID == renderTargetContext->asRenderTargetProxy()->uniqueID()));
+ // MDB TODO: re-enable once opLists are divided. This assertion fails when a rendering is
+ // aborted but the same RT is reused for the next draw. The clears really shouldn't be
+ // fused in that case.
+ //SkASSERT((fLastFullClearResourceID == renderTarget->uniqueID()) ==
+ // (fLastFullClearProxyID == renderTargetContext->asRenderTargetProxy()->uniqueID()));
if (fLastFullClearResourceID == renderTarget->uniqueID()) {
// As currently implemented, fLastFullClearOp should be the last op because we would
// have cleared it when another op was recorded.