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: |