mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-19 12:55:35 +00:00
Fix warnings in raylib (#3793)
This commit is contained in:
@@ -5284,7 +5284,8 @@ static Model LoadGLTF(const char *fileName)
|
||||
{
|
||||
// Handle 16-bit unsigned short, vec2 format
|
||||
model.meshes[meshIndex].boneIds = RL_CALLOC(model.meshes[meshIndex].vertexCount*2, sizeof(unsigned short));
|
||||
LOAD_ATTRIBUTE(attribute, 2, unsigned short, model.meshes[meshIndex].boneIds)
|
||||
unsigned short* ptr = (unsigned short*)model.meshes[meshIndex].boneIds;
|
||||
LOAD_ATTRIBUTE(attribute, 2, unsigned short, ptr)
|
||||
}
|
||||
else if ((attribute->component_type == cgltf_component_type_r_32u) && (attribute->type == cgltf_type_vec4))
|
||||
{
|
||||
@@ -5296,7 +5297,8 @@ static Model LoadGLTF(const char *fileName)
|
||||
{
|
||||
// Handle 32-bit float, vec2 format
|
||||
model.meshes[meshIndex].boneIds = RL_CALLOC(model.meshes[meshIndex].vertexCount*2, sizeof(float));
|
||||
LOAD_ATTRIBUTE(attribute, 2, float, model.meshes[meshIndex].boneIds)
|
||||
float* ptr = (float*)model.meshes[meshIndex].boneIds;
|
||||
LOAD_ATTRIBUTE(attribute, 2, float, ptr)
|
||||
}
|
||||
else TRACELOG(LOG_WARNING, "MODEL: [%s] Joint attribute data format not supported", fileName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user