History

Buffer usage flags

Brad Davis committed 8 years ago

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

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

Unified · Split

libraries/render/src/render/DrawStatus.cpp+2−2
@@ -205,7 +205,7 @@ void DrawStatus::run(const RenderContextPointer& renderContext, const Input& inI · 204 unmodified lines
205205 }
206206
207207 if (!_boundsBuffer) {
208− _boundsBuffer = std::make_shared<gpu::Buffer>(sizeof(render::ItemBound));
208+ _boundsBuffer = std::make_shared<gpu::Buffer>(gpu::Buffer::ResourceBuffer, sizeof(render::ItemBound));
209209 }
210210
211211 // Alright, something to render let's do it
@@ -231,7 +231,7 @@ void DrawStatus::run(const RenderContextPointer& renderContext, const Input& inI · 19 unmodified lines
231231
232232 if (_showNetwork || _showFade) {
233233 if (!_instanceBuffer) {
234− _instanceBuffer = std::make_shared<gpu::Buffer>();
234+ _instanceBuffer = std::make_shared<gpu::Buffer>(gpu::Buffer::VertexBuffer);
235235 }
236236
237237 struct InstanceData {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t