Limit div for performance

This commit is contained in:
Fierelier 2023-08-20 16:00:56 +02:00
parent 5d67feb69d
commit 05cf339259

View File

@ -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;