Limit div for performance
This commit is contained in:
parent
5d67feb69d
commit
05cf339259
1
src/3d.c
1
src/3d.c
@ -103,6 +103,7 @@ void engine_3d_rendertarget_draw_quad(
|
|||||||
|
|
||||||
int div = abs(ssy0 - ssy1);
|
int div = abs(ssy0 - ssy1);
|
||||||
if (abs(sey0 - sey1) > div) { div = abs(sey0 - sey1); }
|
if (abs(sey0 - sey1) > div) { div = abs(sey0 - sey1); }
|
||||||
|
if (div > height) { div = height; }
|
||||||
|
|
||||||
struct ENGINE_COLOR color;
|
struct ENGINE_COLOR color;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user