2
0
Fork 0
mirror of https://github.com/yuzu-mirror/yuzu synced 2024-12-23 17:53:06 +00:00

gl_rasterizer: Pass the right number of array quad vertices count

This commit is contained in:
ReinUsesLisp 2019-05-17 17:08:34 -03:00
parent 6f1720a5b7
commit a652e58c54

View file

@ -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;
}