aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLVertexBuffer.cpp
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2015-12-03 09:15:47 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-03 09:15:47 -0800
commit73063dc517f424ad5660db0fbc5fe6fcc13f77f7 (patch)
tree96360627441f666f6632336afdbb5bd6c90fbf4d /src/gpu/gl/GrGLVertexBuffer.cpp
parentc2e0ac4fce5bfe5bac9f2cb1ebd3aea3a8900fb1 (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();
}