summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-15 00:54:05 +0200
committerbunnei <bunneidev@gmail.com>2018-08-15 02:44:19 +0200
commit290439a6a572f785d205b035a73d9e7259f601d8 (patch)
treedb156fcdaf3042049e6a679ec8bb41a90b87bdae
parentMerge pull request #1055 from lioncash/init (diff)
downloadyuzu-290439a6a572f785d205b035a73d9e7259f601d8.tar
yuzu-290439a6a572f785d205b035a73d9e7259f601d8.tar.gz
yuzu-290439a6a572f785d205b035a73d9e7259f601d8.tar.bz2
yuzu-290439a6a572f785d205b035a73d9e7259f601d8.tar.lz
yuzu-290439a6a572f785d205b035a73d9e7259f601d8.tar.xz
yuzu-290439a6a572f785d205b035a73d9e7259f601d8.tar.zst
yuzu-290439a6a572f785d205b035a73d9e7259f601d8.zip
-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 {