Skip to content

Commit

Permalink
try to follow guideline convention as much as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperUserNameMan authored Jun 27, 2024
1 parent c55e579 commit 3900e9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rmodels.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 3900e9c

Please sign in to comment.