Revert "Enable GPU skinning for GL 3.3+, (#5902)"
This reverts commit f1d602029c.
This commit is contained in:
parent
90edc3b0a5
commit
f421b74c0f
|
|
@ -322,11 +322,7 @@
|
||||||
#endif
|
#endif
|
||||||
#ifndef SUPPORT_GPU_SKINNING
|
#ifndef SUPPORT_GPU_SKINNING
|
||||||
// GPU skinning disabled by default, some GPUs do not support more than 8 VBOs
|
// 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 0
|
||||||
#define SUPPORT_GPU_SKINNING 1
|
|
||||||
#else
|
|
||||||
#define SUPPORT_GPU_SKINNING 0
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -2487,12 +2487,9 @@ static void UpdateModelAnimationVertexBuffers(Model model)
|
||||||
float boneWeight = 0.0f;
|
float boneWeight = 0.0f;
|
||||||
bool bufferUpdateRequired = false; // Flag to check when anim vertex information is updated
|
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
|
// 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;
|
(mesh.animVertices == NULL) || (mesh.animNormals == NULL)) continue;
|
||||||
#endif
|
|
||||||
|
|
||||||
for (int vCounter = 0; vCounter < vertexValuesCount; vCounter += 3)
|
for (int vCounter = 0; vCounter < vertexValuesCount; vCounter += 3)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user