]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/buffer_backend.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / backends / opengl / buffer_backend.cpp
index 6417633b72a34a6866ff4b73d761fa56bd697dc5..dc081b1c76517852a5b832a8918b06b7896b8990 100644 (file)
@@ -132,5 +132,16 @@ void OpenGLBuffer::unbind_scratch()
        }
 }
 
+
+void Buffer::AsyncTransfer::allocate()
+{
+       dest_addr = buffer->map();
+}
+
+void Buffer::AsyncTransfer::finalize()
+{
+       buffer->unmap();
+}
+
 } // namespace GL
 } // namespace Msp