mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 09:12:46 +01:00
Merge pull request #2480 from ReinUsesLisp/fix-quads
gl_rasterizer: Pass the right number of array quad vertices count
This commit is contained in:
commit
4452195d41
1 changed files with 2 additions and 2 deletions
|
@ -261,8 +261,8 @@ DrawParameters RasterizerOpenGL::SetupDraw() {
|
||||||
// MakeQuadArray always generates u32 indexes
|
// MakeQuadArray always generates u32 indexes
|
||||||
params.index_format = GL_UNSIGNED_INT;
|
params.index_format = GL_UNSIGNED_INT;
|
||||||
params.count = (regs.vertex_buffer.count / 4) * 6;
|
params.count = (regs.vertex_buffer.count / 4) * 6;
|
||||||
params.index_buffer_offset =
|
params.index_buffer_offset = primitive_assembler.MakeQuadArray(
|
||||||
primitive_assembler.MakeQuadArray(regs.vertex_buffer.first, params.count);
|
regs.vertex_buffer.first, regs.vertex_buffer.count);
|
||||||
}
|
}
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue