Index: src/gpu/GrCommandBuilder.cpp |
diff --git a/src/gpu/GrCommandBuilder.cpp b/src/gpu/GrCommandBuilder.cpp |
index b3f6d7185b6b219de70ba1a9eb420214b044daea..6b56dea421dec2c8cbb5a68348016d28182e7a72 100644 |
--- a/src/gpu/GrCommandBuilder.cpp |
+++ b/src/gpu/GrCommandBuilder.cpp |
@@ -32,6 +32,11 @@ GrTargetCommands::Cmd* GrCommandBuilder::recordClear(const SkIRect* rect, |
r.setLTRB(0, 0, renderTarget->width(), renderTarget->height()); |
rect = &r; |
} |
+ |
+ SkASSERT(color == GrColor_ILLEGAL || |
+ canIgnoreRect || |
+ (rect->fLeft <= rect->fRight && rect->fTop <= rect->fBottom)); |
+ |
Clear* clr = GrNEW_APPEND_TO_RECORDER(*this->cmdBuffer(), Clear, (renderTarget)); |
GrColorIsPMAssert(color); |
clr->fColor = color; |