| Index: src/gpu/gl/GrGLIndexBuffer.h
|
| diff --git a/src/gpu/gl/GrGLIndexBuffer.h b/src/gpu/gl/GrGLIndexBuffer.h
|
| index 32a808606362fefa0ef55a9d48729dc91ab530cf..893e357173f33670dec736280316f8ba196c6d31 100644
|
| --- a/src/gpu/gl/GrGLIndexBuffer.h
|
| +++ b/src/gpu/gl/GrGLIndexBuffer.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());
|
| }
|
|
|
|
|