aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLVertexBuffer.cpp
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2015-12-02 13:06:37 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-02 13:06:37 -0800
commitfa498fe12239988578465d0dee69f0d5645bb361 (patch)
tree25965bd3f33b4fae893403855d1a9e03d558be49 /src/gpu/gl/GrGLVertexBuffer.cpp
parentf16f88b779f802bb3c9892e6f1275fe980e956a1 (diff)
Add transfer buffer support.
Diffstat (limited to 'src/gpu/gl/GrGLVertexBuffer.cpp')
-rw-r--r--src/gpu/gl/GrGLVertexBuffer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLVertexBuffer.cpp b/src/gpu/gl/GrGLVertexBuffer.cpp
index 1f8951654f..2294844fc4 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();
}