Index: src/gpu/gl/GrGLVertexBuffer.cpp |
diff --git a/src/gpu/gl/GrGLVertexBuffer.cpp b/src/gpu/gl/GrGLVertexBuffer.cpp |
index 1f8951654f92b50091d5deac5953a779f176b11b..2294844fc420c359117caaa870ba723bd07faa18 100644 |
--- a/src/gpu/gl/GrGLVertexBuffer.cpp |
+++ b/src/gpu/gl/GrGLVertexBuffer.cpp |
@@ -10,7 +10,8 @@ |
#include "SkTraceMemoryDump.h" |
GrGLVertexBuffer::GrGLVertexBuffer(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_ARRAY_BUFFER) { |
this->registerWithCache(); |
} |