diff options
author | 2013-03-13 21:47:56 +0000 | |
---|---|---|
committer | 2013-03-13 21:47:56 +0000 | |
commit | 152336f4ea610760c9a471d9ebc7fa55e01bb1c9 (patch) | |
tree | 218f36188051a1f77638a60e58a72ef71fb497ac /src/gpu/gl/GrGLVertexArray.h | |
parent | 2863f082f2524ebae9e69f382b50065189912b47 (diff) |
Fix uninitialized memory access
https://codereview.appspot.com/7657044/
git-svn-id: http://skia.googlecode.com/svn/trunk@8142 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGLVertexArray.h')
-rw-r--r-- | src/gpu/gl/GrGLVertexArray.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLVertexArray.h b/src/gpu/gl/GrGLVertexArray.h index b68e71dbe8..5693f4a5e0 100644 --- a/src/gpu/gl/GrGLVertexArray.h +++ b/src/gpu/gl/GrGLVertexArray.h @@ -62,7 +62,8 @@ public: void notifyVertexBufferDelete(GrGLuint id) { int count = fAttribArrayStates.count(); for (int i = 0; i < count; ++i) { - if (id == fAttribArrayStates[i].fVertexBufferID) { + if (fAttribArrayStates[i].fAttribPointerIsValid && + id == fAttribArrayStates[i].fVertexBufferID) { fAttribArrayStates[i].invalidate(); } } |