mirror of
https://github.com/raysan5/raylib.git
synced 2026-07-05 17:05:14 +00:00
Revert "Enable GPU skinning for GL 3.3+, (#5902)"
This reverts commit f1d602029c.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user