diff --git a/src/util/opengl_device.cpp b/src/util/opengl_device.cpp index 89263c8a4..1ed2f09ca 100644 --- a/src/util/opengl_device.cpp +++ b/src/util/opengl_device.cpp @@ -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); }