summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorHexagon12 <Hexagon12@users.noreply.github.com>2019-05-19 15:58:49 +0200
committerGitHub <noreply@github.com>2019-05-19 15:58:49 +0200
commit4452195d41ffdabfd32a91273ef70f8e540a6ff7 (patch)
tree47ae2a804abeb8a7bba8ccc52584998814571fa8 /src/video_core
parentMerge pull request #2483 from ReinUsesLisp/fix-point-size (diff)
parentgl_rasterizer: Pass the right number of array quad vertices count (diff)
downloadyuzu-4452195d41ffdabfd32a91273ef70f8e540a6ff7.tar
yuzu-4452195d41ffdabfd32a91273ef70f8e540a6ff7.tar.gz
yuzu-4452195d41ffdabfd32a91273ef70f8e540a6ff7.tar.bz2
yuzu-4452195d41ffdabfd32a91273ef70f8e540a6ff7.tar.lz
yuzu-4452195d41ffdabfd32a91273ef70f8e540a6ff7.tar.xz
yuzu-4452195d41ffdabfd32a91273ef70f8e540a6ff7.tar.zst
yuzu-4452195d41ffdabfd32a91273ef70f8e540a6ff7.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 d1a1357e4..dbd8049f5 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;
}