summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-05-17 22:08:34 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-05-17 22:08:34 +0200
commita652e58c54d9f1ceb17bf778ed867ac5dd0d26ed (patch)
treec3d00fbddc4ace37f2052eeeef9f04160e46c80e /src/video_core
parentMerge pull request #2477 from ReinUsesLisp/fix-sdl2 (diff)
downloadyuzu-a652e58c54d9f1ceb17bf778ed867ac5dd0d26ed.tar
yuzu-a652e58c54d9f1ceb17bf778ed867ac5dd0d26ed.tar.gz
yuzu-a652e58c54d9f1ceb17bf778ed867ac5dd0d26ed.tar.bz2
yuzu-a652e58c54d9f1ceb17bf778ed867ac5dd0d26ed.tar.lz
yuzu-a652e58c54d9f1ceb17bf778ed867ac5dd0d26ed.tar.xz
yuzu-a652e58c54d9f1ceb17bf778ed867ac5dd0d26ed.tar.zst
yuzu-a652e58c54d9f1ceb17bf778ed867ac5dd0d26ed.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 3cc945235..789606e59 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -261,8 +261,8 @@ DrawParameters RasterizerOpenGL::SetupDraw() {
// MakeQuadArray always generates u32 indexes
params.index_format = GL_UNSIGNED_INT;
params.count = (regs.vertex_buffer.count / 4) * 6;
- params.index_buffer_offset =
- primitive_assembler.MakeQuadArray(regs.vertex_buffer.first, params.count);
+ params.index_buffer_offset = primitive_assembler.MakeQuadArray(
+ regs.vertex_buffer.first, regs.vertex_buffer.count);
}
return params;
}