| Index: src/gpu/gl/GrGpuGL.cpp
|
| diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp
|
| index 9b92fe25da17e4144508dddd24ee6df8e1994abd..1a1bad7f28a0fe35296101ce68d6106ca317b88e 100644
|
| --- a/src/gpu/gl/GrGpuGL.cpp
|
| +++ b/src/gpu/gl/GrGpuGL.cpp
|
| @@ -2788,7 +2788,7 @@ GrGLAttribArrayState* GrGpuGL::HWGeometryState::bindArrayAndBuffersToDraw(
|
|
|
| // We use a vertex array if we're on a core profile and the verts are in a VBO.
|
| if (gpu->glCaps().isCoreProfile() && !vbuffer->isCPUBacked()) {
|
| - if (NULL == fVBOVertexArray || !fVBOVertexArray->isValid()) {
|
| + if (NULL == fVBOVertexArray || fVBOVertexArray->wasDestroyed()) {
|
| SkSafeUnref(fVBOVertexArray);
|
| GrGLuint arrayID;
|
| GR_GL_CALL(gpu->glInterface(), GenVertexArrays(1, &arrayID));
|
|
|