try to follow guideline convention as much as possible
This commit is contained in:
parent
c55e579271
commit
3900e9c765
|
|
@ -4815,9 +4815,9 @@ static Image LoadImageFromCgltfImage(cgltf_image *cgltfImage, const char *texPat
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int base64Size = (int)strlen(cgltfImage->uri + i + 1);
|
int base64Size = (int)strlen(cgltfImage->uri + i + 1);
|
||||||
while (cgltfImage->uri[i+base64Size] == '=') base64Size--; // remove optional paddings
|
while (cgltfImage->uri[i + base64Size] == '=') base64Size--; // remove optional paddings
|
||||||
int numberOfEncodedBits = base64Size * 6 - (base64Size * 6) % 8 ; // ignore extra bits
|
int numberOfEncodedBits = base64Size*6 - (base64Size*6) % 8 ; // ignore extra bits
|
||||||
int outSize = numberOfEncodedBits / 8 ; // actual encoded bytes
|
int outSize = numberOfEncodedBits/8 ; // actual encoded bytes
|
||||||
void *data = NULL;
|
void *data = NULL;
|
||||||
|
|
||||||
cgltf_options options = { 0 };
|
cgltf_options options = { 0 };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user