aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLIndexBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gl/GrGLIndexBuffer.cpp')
-rw-r--r--src/gpu/gl/GrGLIndexBuffer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLIndexBuffer.cpp b/src/gpu/gl/GrGLIndexBuffer.cpp
index 5a794ad824..230d9a4693 100644
--- a/src/gpu/gl/GrGLIndexBuffer.cpp
+++ b/src/gpu/gl/GrGLIndexBuffer.cpp
@@ -10,8 +10,7 @@
#include "SkTraceMemoryDump.h"
GrGLIndexBuffer::GrGLIndexBuffer(GrGLGpu* gpu, const Desc& desc)
- : INHERITED(gpu, desc.fSizeInBytes, GrGLBufferImpl::kDynamicDraw_Usage == desc.fUsage,
- 0 == desc.fID)
+ : INHERITED(gpu, desc.fSizeInBytes, desc.fDynamic, 0 == desc.fID)
, fImpl(gpu, desc, GR_GL_ELEMENT_ARRAY_BUFFER) {
this->registerWithCache();
}