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, 2 insertions, 5 deletions
diff --git a/src/gpu/GrRenderTargetOpList.cpp b/src/gpu/GrRenderTargetOpList.cpp
index 04472c58a0..4d309f407e 100644
--- a/src/gpu/GrRenderTargetOpList.cpp
+++ b/src/gpu/GrRenderTargetOpList.cpp
@@ -227,11 +227,8 @@ 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
- // 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()));
+ 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.