Updated cgltf.

This commit is contained in:
Бранимир Караџић 2023-03-31 19:02:20 -07:00
parent b0bb4fc578
commit 2c07181c1e

View File

@ -2218,7 +2218,7 @@ static cgltf_size cgltf_component_read_index(const void* in, cgltf_component_typ
case cgltf_component_type_r_32u: case cgltf_component_type_r_32u:
return *((const uint32_t*) in); return *((const uint32_t*) in);
case cgltf_component_type_r_32f: case cgltf_component_type_r_32f:
return (cgltf_size)*((const float*) in); return (cgltf_size)((cgltf_ssize)*((const float*) in));
case cgltf_component_type_r_8u: case cgltf_component_type_r_8u:
return *((const uint8_t*) in); return *((const uint8_t*) in);
default: default: