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;