mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
OpenGLDevice: Fix incorrect streamed counter
This commit is contained in:
parent
8fe86ff690
commit
9b784b1777
|
@ -1080,7 +1080,7 @@ void* OpenGLDevice::MapUniformBuffer(u32 size)
|
|||
void OpenGLDevice::UnmapUniformBuffer(u32 size)
|
||||
{
|
||||
const u32 pos = m_uniform_buffer->Unmap(size);
|
||||
s_stats.buffer_streamed += pos;
|
||||
s_stats.buffer_streamed += size;
|
||||
glBindBufferRange(GL_UNIFORM_BUFFER, 1, m_uniform_buffer->GetGLBufferId(), pos, size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue