set minimum req vertices to 3 (quads)
This commit is contained in:
parent
7ec3a5fe6e
commit
c35a74a13b
2
src/external/rlsw.h
vendored
2
src/external/rlsw.h
vendored
|
|
@ -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++) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user