Playing with RTT.

This commit is contained in:
Ben Vanik
2015-02-02 12:20:41 -08:00
parent f9a3f0c48e
commit 5b08feb010
2 changed files with 12 additions and 4 deletions

View File

@@ -623,6 +623,9 @@ bool TextureCache::UploadTexture2D(GLuint texture,
}
size_t unpack_offset = allocation.offset;
scratch_buffer_->Commit(std::move(allocation));
// TODO(benvanik): avoid flush on entire buffer by using another texture
// buffer.
scratch_buffer_->Flush();
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, scratch_buffer_->handle());
if (texture_info.is_compressed) {