void OpenGLBuffer::allocate()
{
- size_t size = static_cast<const Buffer *>(this)->size;
+ size_t size = static_cast<const Buffer *>(this)->get_total_size();
if(ARB_buffer_storage)
{
}
}
+
+void Buffer::AsyncTransfer::allocate()
+{
+ dest_addr = buffer->map();
+}
+
+void Buffer::AsyncTransfer::finalize()
+{
+ buffer->unmap();
+}
+
} // namespace GL
} // namespace Msp