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;