Correct C3D_DrawElements with GPU_TRIANGLES

This commit is contained in:
fincs 2017-01-29 21:44:12 +01:00
parent c666893b2e
commit a28fff9391

View File

@ -10,7 +10,7 @@ void C3D_DrawElements(GPU_Primitive_t primitive, int count, int type, const void
C3Di_UpdateContext();
// Set primitive type
GPUCMD_AddMaskedWrite(GPUREG_PRIMITIVE_CONFIG, 2, primitive);
GPUCMD_AddMaskedWrite(GPUREG_PRIMITIVE_CONFIG, 2, primitive != GPU_TRIANGLES ? primitive : GPU_GEOMETRY_PRIM);
// Start a new primitive (breaks off a triangle strip/fan)
GPUCMD_AddWrite(GPUREG_RESTART_PRIMITIVE, 1);
// Configure the index buffer