From 25e73ccb0af95de58a5057d0924e1393f69fba48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Mon, 1 Jul 2019 01:57:23 +0200 Subject: [PATCH] Fix z-buffer bug --- small3dlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/small3dlib.h b/small3dlib.h index e38c9a1..7ff3730 100644 --- a/small3dlib.h +++ b/small3dlib.h @@ -2131,7 +2131,7 @@ void S3L_drawTriangle( #endif #if S3L_Z_BUFFER - S3L_Index zBufferIndex = p.y * S3L_RESOLUTION_X + lXClipped; + uint32_t zBufferIndex = p.y * S3L_RESOLUTION_X + lXClipped; #endif // draw the row -- inner loop: