diff options
author | Hexagon12 <Hexagon12@users.noreply.github.com> | 2019-05-19 15:58:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 15:58:49 +0200 |
commit | 4452195d41ffdabfd32a91273ef70f8e540a6ff7 (patch) | |
tree | 47ae2a804abeb8a7bba8ccc52584998814571fa8 /src | |
parent | Merge pull request #2483 from ReinUsesLisp/fix-point-size (diff) | |
parent | gl_rasterizer: Pass the right number of array quad vertices count (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
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; } |