summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-15 05:14:24 +0200
committerGitHub <noreply@github.com>2018-08-15 05:14:24 +0200
commit2a42dea5681b35de73a463799d65d35050a896c7 (patch)
treec99e3ca8e99a98532565dc38c9d62b9a3bb0cd11 /src
parentMerge pull request #1071 from bunnei/fix-ldc (diff)
parentgl_rasterizer: Fix upload size for constant buffers. (diff)
downloadyuzu-2a42dea5681b35de73a463799d65d35050a896c7.tar
yuzu-2a42dea5681b35de73a463799d65d35050a896c7.tar.gz
yuzu-2a42dea5681b35de73a463799d65d35050a896c7.tar.bz2
yuzu-2a42dea5681b35de73a463799d65d35050a896c7.tar.lz
yuzu-2a42dea5681b35de73a463799d65d35050a896c7.tar.xz
yuzu-2a42dea5681b35de73a463799d65d35050a896c7.tar.zst
yuzu-2a42dea5681b35de73a463799d65d35050a896c7.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 52a649e2f..9d1549fe9 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -648,11 +648,11 @@ std::tuple<u8*, GLintptr, u32> RasterizerOpenGL::SetupConstBuffers(
if (used_buffer.IsIndirect()) {
// Buffer is accessed indirectly, so upload the entire thing
- size = buffer.size * sizeof(float);
+ size = buffer.size;
if (size > MaxConstbufferSize) {
- LOG_ERROR(HW_GPU, "indirect constbuffer size {} exceeds maximum {}", size,
- MaxConstbufferSize);
+ LOG_CRITICAL(HW_GPU, "indirect constbuffer size {} exceeds maximum {}", size,
+ MaxConstbufferSize);
size = MaxConstbufferSize;
}
} else {