mirror of
https://github.com/raysan5/raylib.git
synced 2026-06-05 03:14:12 +00:00
Revert "Enable GPU skinning for GL 3.3+, (#5902)"
This reverts commit f1d602029c.
This commit is contained in:
@@ -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
|
||||
|
||||
//------------------------------------------------------------------------------------
|
||||
|
||||
@@ -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