Index: src/gpu/gl/GrGLVertexBuffer.h |
diff --git a/src/gpu/gl/GrGLVertexBuffer.h b/src/gpu/gl/GrGLVertexBuffer.h |
index 1741adc23d8c92c620be80fbf0bba9ccd4da063f..1b9c4f17beb740e47529920a361331e00aa9019d 100644 |
--- a/src/gpu/gl/GrGLVertexBuffer.h |
+++ b/src/gpu/gl/GrGLVertexBuffer.h |
@@ -26,7 +26,7 @@ public: |
size_t baseOffset() const { return fImpl.baseOffset(); } |
void bind() const { |
- if (this->isValid()) { |
+ if (!this->wasDestroyed()) { |
fImpl.bind(this->getGpuGL()); |
} |
} |
@@ -45,7 +45,7 @@ protected: |
private: |
GrGpuGL* getGpuGL() const { |
- SkASSERT(this->isValid()); |
+ SkASSERT(!this->wasDestroyed()); |
return (GrGpuGL*)(this->getGpu()); |
} |