Index: src/gpu/GrProcessor.cpp |
diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp |
index 1732e3a27a4f6239658d1c08f1e8ba23406882e3..884b09f89ae066ef236ffbe6a99f51699eaf81f0 100644 |
--- a/src/gpu/GrProcessor.cpp |
+++ b/src/gpu/GrProcessor.cpp |
@@ -133,6 +133,9 @@ void GrProcessor::InvariantOutput::validate() const { |
} |
SkASSERT(this->validPreMulColor()); |
+ |
+ // If we claim that we are not using the input color we must not be modulating the input. |
+ SkASSERT(fNonMulStageFound || fWillUseInputColor); |
} |
bool GrProcessor::InvariantOutput::colorComponentsAllEqual() const { |