summaryrefslogtreecommitdiff
path: root/gpu/gl/GrGLIndexBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/gl/GrGLIndexBuffer.h')
-rw-r--r--gpu/gl/GrGLIndexBuffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu/gl/GrGLIndexBuffer.h b/gpu/gl/GrGLIndexBuffer.h
index 32a80860..893e3571 100644
--- a/gpu/gl/GrGLIndexBuffer.h
+++ b/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());
}