diff --git a/src/common/gl_stream_buffer.cpp b/src/common/gl_stream_buffer.cpp index 65a32fb58..982500b0f 100644 --- a/src/common/gl_stream_buffer.cpp +++ b/src/common/gl_stream_buffer.cpp @@ -17,6 +17,11 @@ void StreamBuffer::Bind() glBindBuffer(m_target, m_buffer_id); } +void StreamBuffer::Unbind() +{ + glBindBuffer(m_target, 0); +} + StreamBuffer::MappingResult StreamBuffer::Map(u32 alignment, u32 min_size) { return MappingResult{static_cast(m_cpu_buffer.data()), 0, m_size / alignment}; diff --git a/src/common/gl_stream_buffer.h b/src/common/gl_stream_buffer.h index 5c1876bed..9e3ea144c 100644 --- a/src/common/gl_stream_buffer.h +++ b/src/common/gl_stream_buffer.h @@ -17,6 +17,7 @@ public: ALWAYS_INLINE u32 GetSize() const { return m_size; } void Bind(); + void Unbind(); struct MappingResult {