History

Buffer usage flags

Brad Davis committed 8 years ago

Commit ea485d01 parent 935a4b348 files · +281 −332Browse files

Showing the changes to libraries/render-utils/src/AnimDebugDraw.cpp (1 of 48 files). Show all

Unified · Split

libraries/render-utils/src/AnimDebugDraw.cpp+2−2
@@ -33,8 +33,8 @@ public: · 32 unmodified lines
3333 AnimDebugDrawData() {
3434
3535 _vertexFormat = std::make_shared<gpu::Stream::Format>();
36− _vertexBuffer = std::make_shared<gpu::Buffer>();
37− _indexBuffer = std::make_shared<gpu::Buffer>();
36+ _vertexBuffer = std::make_shared<gpu::Buffer>(gpu::Buffer::VertexBuffer);
37+ _indexBuffer = std::make_shared<gpu::Buffer>(gpu::Buffer::IndexBuffer);
3838
3939 _vertexFormat->setAttribute(gpu::Stream::POSITION, 0, gpu::Element::VEC3F_XYZ, 0);
4040 _vertexFormat->setAttribute(gpu::Stream::COLOR, 0, gpu::Element::COLOR_RGBA_32, offsetof(Vertex, rgba));