Batch flushing buffer.

This commit is contained in:
Ben Vanik
2015-01-02 18:01:48 -08:00
parent bb15d2f62f
commit 5236477043
4 changed files with 36 additions and 5 deletions

View File

@@ -1428,6 +1428,7 @@ bool CommandProcessor::IssueDraw(DrawCommand* draw_command) {
glBindBufferRange(GL_SHADER_STORAGE_BUFFER, 0, scratch_buffer_.handle(),
allocation.offset, allocation.length);
scratch_buffer_.Commit(std::move(allocation));
scratch_buffer_.Flush();
if (cmd.index_buffer.address) {
// Indexed draw.