Index: src/gpu/gl/GrGLIndexBuffer.cpp |
diff --git a/src/gpu/gl/GrGLIndexBuffer.cpp b/src/gpu/gl/GrGLIndexBuffer.cpp |
index a137348ef75e3328289cd059275d96aab71c7f7c..5991c0961315fd8dab718bbb4796a76829c7230c 100644 |
--- a/src/gpu/gl/GrGLIndexBuffer.cpp |
+++ b/src/gpu/gl/GrGLIndexBuffer.cpp |
@@ -11,6 +11,7 @@ |
GrGLIndexBuffer::GrGLIndexBuffer(GrGpuGL* gpu, const Desc& desc) |
: INHERITED(gpu, desc.fIsWrapped, desc.fSizeInBytes, desc.fDynamic, 0 == desc.fID) |
, fImpl(gpu, desc, GR_GL_ELEMENT_ARRAY_BUFFER) { |
+ this->registerWithCache(); |
} |
void GrGLIndexBuffer::onRelease() { |