From 05cf339259f442c4e351f8de46323a4b3154db56 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Sun, 20 Aug 2023 16:00:56 +0200 Subject: [PATCH] Limit div for performance --- src/3d.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/3d.c b/src/3d.c index 25a3565..79d1164 100644 --- a/src/3d.c +++ b/src/3d.c @@ -103,6 +103,7 @@ void engine_3d_rendertarget_draw_quad( int div = abs(ssy0 - ssy1); if (abs(sey0 - sey1) > div) { div = abs(sey0 - sey1); } + if (div > height) { div = height; } struct ENGINE_COLOR color;