From f421b74c0f447c641722b8a46a68ce8d8a7f5b13 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 1 Jun 2026 20:42:48 +0200 Subject: [PATCH] Revert "Enable GPU skinning for GL 3.3+, (#5902)" This reverts commit f1d602029c86bb36e9b0c28adc86d7c1843ff02b. --- src/config.h | 6 +----- src/rmodels.c | 5 +---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/config.h b/src/config.h index 86239d47d..97f5ba544 100644 --- a/src/config.h +++ b/src/config.h @@ -322,11 +322,7 @@ #endif #ifndef SUPPORT_GPU_SKINNING // GPU skinning disabled by default, some GPUs do not support more than 8 VBOs - #if defined (GRAPHICS_API_OPENGL_33) || defined (GRAPHICS_API_OPENGL_43) - #define SUPPORT_GPU_SKINNING 1 - #else - #define SUPPORT_GPU_SKINNING 0 - #endif + #define SUPPORT_GPU_SKINNING 0 #endif //------------------------------------------------------------------------------------ diff --git a/src/rmodels.c b/src/rmodels.c index e10f888f8..eeebc3d2b 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -2487,12 +2487,9 @@ static void UpdateModelAnimationVertexBuffers(Model model) float boneWeight = 0.0f; bool bufferUpdateRequired = false; // Flag to check when anim vertex information is updated -#if defined (SUPPORT_GPU_SKINNING) - Material material = model.materials[model.meshMaterial[m]]; // Skip if missing bone data or missing anim buffers initialization - if ((material.shader.locs[SHADER_LOC_VERTEX_BONEIDS] != -1) && (mesh.boneWeights == NULL) || (mesh.boneIndices == NULL) || + if ((mesh.boneWeights == NULL) || (mesh.boneIndices == NULL) || (mesh.animVertices == NULL) || (mesh.animNormals == NULL)) continue; -#endif for (int vCounter = 0; vCounter < vertexValuesCount; vCounter += 3) {