mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 10:35:11 -04:00
Dreamcast: Draw each quad as a triangle strip instead of two triangles
This commit is contained in:
parent
751e5b500f
commit
e4b80f60a4
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) {
|
switch(visible_mask) {
|
||||||
case V0_VIS | V1_VIS | V2_VIS | V3_VIS: // All vertices visible
|
case V0_VIS | V1_VIS | V2_VIS | V3_VIS: // All vertices visible
|
||||||
{
|
{
|
||||||
_glPerspectiveDivideVertex(v0);
|
// Triangle strip: {1,2,0} {2,0,3}
|
||||||
_glPushHeaderOrVertex(v0);
|
|
||||||
|
|
||||||
_glPerspectiveDivideVertex(v1);
|
_glPerspectiveDivideVertex(v1);
|
||||||
_glPushHeaderOrVertex(v1);
|
_glPushHeaderOrVertex(v1);
|
||||||
|
|
||||||
v2->flags = GPU_CMD_VERTEX_EOL;
|
|
||||||
_glPerspectiveDivideVertex(v2);
|
_glPerspectiveDivideVertex(v2);
|
||||||
_glPushHeaderOrVertex(v2);
|
_glPushHeaderOrVertex(v2);
|
||||||
|
|
||||||
|
_glPerspectiveDivideVertex(v0);
|
||||||
|
_glPushHeaderOrVertex(v0);
|
||||||
|
|
||||||
v2->flags = GPU_CMD_VERTEX;
|
|
||||||
_glPushHeaderOrVertex(v2);
|
|
||||||
|
|
||||||
v3->flags = GPU_CMD_VERTEX;
|
|
||||||
_glPerspectiveDivideVertex(v3);
|
_glPerspectiveDivideVertex(v3);
|
||||||
_glPushHeaderOrVertex(v3);
|
_glPushHeaderOrVertex(v3);
|
||||||
|
|
||||||
v0->flags = GPU_CMD_VERTEX_EOL;
|
|
||||||
_glPushHeaderOrVertex(v0);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user