Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Unified Diff: src/gpu/GrOptDrawState.cpp

Issue 667033003: Add check to see if we need to remove fixed funciton VA in OptDrawState (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrOptDrawState.cpp
diff --git a/src/gpu/GrOptDrawState.cpp b/src/gpu/GrOptDrawState.cpp
index 40e0c6ce1fbb4a920caa8a2cf8874e5fd0b97544..77a9fc8dc454a25672d849f9ec8d5fb1f10c2081 100644
--- a/src/gpu/GrOptDrawState.cpp
+++ b/src/gpu/GrOptDrawState.cpp
@@ -48,7 +48,9 @@ GrOptDrawState::GrOptDrawState(const GrDrawState& drawState,
this->adjustFromBlendOpts(drawState, &firstColorStageIdx, &firstCoverageStageIdx,
&fixedFunctionVAToRemove);
// Should not be setting any more FFVA to be removed at this point
- this->removeFixedFunctionVertexAttribs(fixedFunctionVAToRemove);
+ if (0 != fixedFunctionVAToRemove) {
+ this->removeFixedFunctionVertexAttribs(fixedFunctionVAToRemove);
+ }
this->getStageStats(drawState, firstColorStageIdx, firstCoverageStageIdx);
this->setOutputStateInfo(drawState, caps, firstCoverageStageIdx, &separateCoverageFromColor);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698