mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
Dreamcast: Draw each quad as a triangle strip instead of two triangles
This commit is contained in:
parent
751e5b500f
commit
e4b80f60a4
1 changed files with 3 additions and 11 deletions
14
third_party/gldc/src/sh4.c
vendored
14
third_party/gldc/src/sh4.c
vendored
|
@ -360,26 +360,18 @@ void SceneListSubmit(Vertex* v3, int n) {
|
|||
switch(visible_mask) {
|
||||
case V0_VIS | V1_VIS | V2_VIS | V3_VIS: // All vertices visible
|
||||
{
|
||||
_glPerspectiveDivideVertex(v0);
|
||||
_glPushHeaderOrVertex(v0);
|
||||
|
||||
// Triangle strip: {1,2,0} {2,0,3}
|
||||
_glPerspectiveDivideVertex(v1);
|
||||
_glPushHeaderOrVertex(v1);
|
||||
|
||||
v2->flags = GPU_CMD_VERTEX_EOL;
|
||||
_glPerspectiveDivideVertex(v2);
|
||||
_glPushHeaderOrVertex(v2);
|
||||
|
||||
_glPerspectiveDivideVertex(v0);
|
||||
_glPushHeaderOrVertex(v0);
|
||||
|
||||
v2->flags = GPU_CMD_VERTEX;
|
||||
_glPushHeaderOrVertex(v2);
|
||||
|
||||
v3->flags = GPU_CMD_VERTEX;
|
||||
_glPerspectiveDivideVertex(v3);
|
||||
_glPushHeaderOrVertex(v3);
|
||||
|
||||
v0->flags = GPU_CMD_VERTEX_EOL;
|
||||
_glPushHeaderOrVertex(v0);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue