Index: src/gpu/gl/GrGLIndexBuffer.cpp |
diff --git a/src/gpu/gl/GrGLIndexBuffer.cpp b/src/gpu/gl/GrGLIndexBuffer.cpp |
index 230d9a46933ac757c2fe71662c80cda1be409be3..5a794ad8240659a61957e0622837447022a5f2e1 100644 |
--- a/src/gpu/gl/GrGLIndexBuffer.cpp |
+++ b/src/gpu/gl/GrGLIndexBuffer.cpp |
@@ -10,7 +10,8 @@ |
#include "SkTraceMemoryDump.h" |
GrGLIndexBuffer::GrGLIndexBuffer(GrGLGpu* gpu, const Desc& desc) |
- : INHERITED(gpu, desc.fSizeInBytes, desc.fDynamic, 0 == desc.fID) |
+ : INHERITED(gpu, desc.fSizeInBytes, GrGLBufferImpl::kDynamicDraw_Usage == desc.fUsage, |
+ 0 == desc.fID) |
, fImpl(gpu, desc, GR_GL_ELEMENT_ARRAY_BUFFER) { |
this->registerWithCache(); |
} |