diff options
| author | Ray <[email protected]> | 2021-10-26 22:26:28 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-10-26 22:26:28 +0200 |
| commit | 72758de6eafa365c1e4c6aa363c74c0c86fe0916 (patch) | |
| tree | 0383fc75f34d8f3234015021924e3e6368be1ad0 /src | |
| parent | 25642cff3692d9012796a892d2b2cbcdcd63409a (diff) | |
| download | raylib-72758de6eafa365c1e4c6aa363c74c0c86fe0916.tar.gz raylib-72758de6eafa365c1e4c6aa363c74c0c86fe0916.zip | |
Reviewed warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/rmodels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rmodels.c b/src/rmodels.c index ab919d27..8218a818 100644 --- a/src/rmodels.c +++ b/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); } } |
