Browse Source

Reviewed warnings

Ray 3 years ago
parent
commit
72758de6ea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/rmodels.c

+ 2 - 2
src/rmodels.c

@@ -4519,14 +4519,14 @@ static Image LoadImageFromCgltfImage(cgltf_image *cgltfImage, const char *texPat
             {
                 int base64Size = (int)strlen(cgltfImage->uri + i + 1);
                 int outSize = 3*(base64Size/4);         // TODO: Consider padding (-numberOfPaddingCharacters)
-                char *data = NULL;
+                void *data = NULL;
 
                 cgltf_options options = { 0 };
                 cgltf_result result = cgltf_load_buffer_base64(&options, outSize, cgltfImage->uri + i + 1, &data);
                 
                 if (result == cgltf_result_success)
                 {
-                    image = LoadImageFromMemory(".png", data, outSize);
+                    image = LoadImageFromMemory(".png", (unsigned char *)data, outSize);
                     cgltf_free((cgltf_data*)data);
                 }
             }