diff --git a/src/rmodels.c b/src/rmodels.c index 8f052b098ac2..ecd2e67d9790 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -4815,9 +4815,9 @@ static Image LoadImageFromCgltfImage(cgltf_image *cgltfImage, const char *texPat else { int base64Size = (int)strlen(cgltfImage->uri + i + 1); - while (cgltfImage->uri[i+base64Size] == '=') base64Size--; // remove optional paddings - int numberOfEncodedBits = base64Size * 6 - (base64Size * 6) % 8 ; // ignore extra bits - int outSize = numberOfEncodedBits / 8 ; // actual encoded bytes + while (cgltfImage->uri[i + base64Size] == '=') base64Size--; // remove optional paddings + int numberOfEncodedBits = base64Size*6 - (base64Size*6) % 8 ; // ignore extra bits + int outSize = numberOfEncodedBits/8 ; // actual encoded bytes void *data = NULL; cgltf_options options = { 0 };