From 7a2f28833bba8ca32ec7291bf1d83cf4bab1b449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Wed, 26 Jun 2019 18:13:25 +0200 Subject: [PATCH] Fix a compile error --- programs/level.c | 1 + small3dlib.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/level.c b/programs/level.c index 5279c07..db5758c 100644 --- a/programs/level.c +++ b/programs/level.c @@ -25,6 +25,7 @@ #define S3L_SORT 0 #define S3L_Z_BUFFER 1 +#define S3L_MAX_TRIANGES_DRAWN 512 #define S3L_PIXEL_FUNCTION drawPixel diff --git a/small3dlib.h b/small3dlib.h index 17f9527..0901771 100644 --- a/small3dlib.h +++ b/small3dlib.h @@ -2547,7 +2547,7 @@ void S3L_drawScene(S3L_Scene scene) for (int16_t i = 1; i < S3L_sortArrayLength; ++i) { - S3L_TriangleToSort tmp = S3L_sortArray[i]; + _S3L_TriangleToSort tmp = S3L_sortArray[i]; int16_t j = i - 1;