From e938c18dde39ad4fb4d28964bad5846b5306cd24 Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Mon, 30 Sep 2024 17:35:18 -0700 Subject: [PATCH] Make the max VBO match the animation flag. --- src/config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config.h b/src/config.h index 8bba37606..34e495741 100644 --- a/src/config.h +++ b/src/config.h @@ -237,7 +237,11 @@ // rmodels: Configuration values //------------------------------------------------------------------------------------ #define MAX_MATERIAL_MAPS 12 // Maximum number of shader maps supported +#ifdef RL_SUPPORT_MESH_ANIMATION_VBO #define MAX_MESH_VERTEX_BUFFERS 9 // Maximum vertex buffers (VBO) per mesh +#else +#define MAX_MESH_VERTEX_BUFFERS 7 // Maximum vertex buffers (VBO) per mesh +#endif //------------------------------------------------------------------------------------ // Module: raudio - Configuration Flags