summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-09-20 02:35:07 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-09-20 02:35:07 +0200
commit1ea8073783b3e12c10812192e34a5d557727fd34 (patch)
tree4201c0868d7feed955e0d68f372a43af15f17b7f /src/video_core/renderer_opengl
parentMerge pull request #7019 from ameerj/videocore-jthread (diff)
downloadyuzu-1ea8073783b3e12c10812192e34a5d557727fd34.tar
yuzu-1ea8073783b3e12c10812192e34a5d557727fd34.tar.gz
yuzu-1ea8073783b3e12c10812192e34a5d557727fd34.tar.bz2
yuzu-1ea8073783b3e12c10812192e34a5d557727fd34.tar.lz
yuzu-1ea8073783b3e12c10812192e34a5d557727fd34.tar.xz
yuzu-1ea8073783b3e12c10812192e34a5d557727fd34.tar.zst
yuzu-1ea8073783b3e12c10812192e34a5d557727fd34.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_buffer_cache.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.cpp b/src/video_core/renderer_opengl/gl_buffer_cache.cpp
index 07a995f7d..187a28e4d 100644
--- a/src/video_core/renderer_opengl/gl_buffer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_buffer_cache.cpp
@@ -147,8 +147,7 @@ void BufferCacheRuntime::CopyBuffer(Buffer& dst_buffer, Buffer& src_buffer,
void BufferCacheRuntime::ClearBuffer(Buffer& dest_buffer, u32 offset, size_t size, u32 value) {
glClearNamedBufferSubData(dest_buffer.Handle(), GL_R32UI, static_cast<GLintptr>(offset),
- static_cast<GLsizeiptr>(size / sizeof(u32)), GL_RED, GL_UNSIGNED_INT,
- &value);
+ static_cast<GLsizeiptr>(size), GL_RED, GL_UNSIGNED_INT, &value);
}
void BufferCacheRuntime::BindIndexBuffer(Buffer& buffer, u32 offset, u32 size) {