diff options
Diffstat (limited to 'gpu/gl/GrGLVertexBuffer.h')
-rw-r--r-- | gpu/gl/GrGLVertexBuffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu/gl/GrGLVertexBuffer.h b/gpu/gl/GrGLVertexBuffer.h index 1741adc2..1b9c4f17 100644 --- a/gpu/gl/GrGLVertexBuffer.h +++ b/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()); } |