Fix clipped triangle in THIRD_VISIBLE case producing vertices in wrong direction, which would result in them being culled when face culling was enabled

This commit is contained in:
UnknownShadow200 2025-03-31 21:12:05 +11:00
parent 135f4c58c5
commit cf3a29e097

View File

@ -282,10 +282,10 @@ void SceneListSubmit(Vertex* vertices, int n) {
case THIRD_VISIBLE:
memcpy_vertex(c, v2);
_glClipEdge(v2, v0, a);
_glClipEdge(v1, v2, a);
a->flags = GPU_CMD_VERTEX;
_glClipEdge(v1, v2, b);
_glClipEdge(v2, v0, b);
b->flags = GPU_CMD_VERTEX;
_glPerspectiveDivideVertex(a, 3);