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

Unified Diff: src/gpu/GrDrawState.h

Issue 26922004: Make sure attribute indexes are correct after restoring vertex attributes (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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/GrDrawState.h
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
index 6440790c10b1d611e651ea786f97a4b0a008d79e..889dec96862b42402112ed65f148033b70aa00e2 100644
--- a/src/gpu/GrDrawState.h
+++ b/src/gpu/GrDrawState.h
@@ -160,8 +160,7 @@ public:
}
~AutoVertexAttribRestore(){
- fDrawState->fCommon.fVAPtr = fVAPtr;
- fDrawState->fCommon.fVACount = fVACount;
+ fDrawState->setVertexAttribs(fVAPtr, fVACount);
}
private:
« 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