OpenGLDevice: Fix incorrect streamed counter

This commit is contained in:
Stenzek 2024-03-08 21:20:38 +10:00
parent 8fe86ff690
commit 9b784b1777
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}