aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrDrawState.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
index 6440790c10..889dec9686 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: