set minimum req vertices to 3 (quads)

This commit is contained in:
Bigfoot71 2025-05-17 16:38:23 +02:00
parent 7ec3a5fe6e
commit c35a74a13b

2
src/external/rlsw.h vendored
View File

@ -2697,7 +2697,7 @@ static inline void sw_quad_clip_and_project(void)
sw_vertex_t* polygon = RLSW.vertexBuffer; sw_vertex_t* polygon = RLSW.vertexBuffer;
int* vertexCounter = &RLSW.vertexCounter; int* vertexCounter = &RLSW.vertexCounter;
if (sw_polygon_clip(polygon, vertexCounter) && *vertexCounter >= 4) { if (sw_polygon_clip(polygon, vertexCounter) && *vertexCounter >= 3) {
// Transformation to screen space and normalization // Transformation to screen space and normalization
for (int i = 0; i < *vertexCounter; i++) { for (int i = 0; i < *vertexCounter; i++) {