summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-07-20 23:51:42 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-07-20 23:51:45 +0200
commita0c4557557172b3139e3b53a42e31338900037c6 (patch)
treebfcc7e376612e8a9481cf17173eca8ee13ef28a0 /src/video_core
parentbuffer_cache: Simplify clear logic (diff)
downloadyuzu-a0c4557557172b3139e3b53a42e31338900037c6.tar
yuzu-a0c4557557172b3139e3b53a42e31338900037c6.tar.gz
yuzu-a0c4557557172b3139e3b53a42e31338900037c6.tar.bz2
yuzu-a0c4557557172b3139e3b53a42e31338900037c6.tar.lz
yuzu-a0c4557557172b3139e3b53a42e31338900037c6.tar.xz
yuzu-a0c4557557172b3139e3b53a42e31338900037c6.tar.zst
yuzu-a0c4557557172b3139e3b53a42e31338900037c6.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_buffer_cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.cpp b/src/video_core/renderer_opengl/gl_buffer_cache.cpp
index c4189fb60..a02a45e04 100644
--- a/src/video_core/renderer_opengl/gl_buffer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_buffer_cache.cpp
@@ -100,7 +100,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_RGBA, GL_UNSIGNED_INT,
+ static_cast<GLsizeiptr>(size / sizeof(u32)), GL_RED, GL_UNSIGNED_INT,
&value);
}