Fix use of undeclared variable in rmodels.

Broken by de173a93c8.
This commit is contained in:
Ryan Roden-Corrent 2021-09-22 06:51:27 -04:00
parent de173a93c8
commit 46ffa60d2d
No known key found for this signature in database
GPG Key ID: 435D8B10692555C9

View File

@ -4409,7 +4409,7 @@ static Image LoadImageFromCgltfImage(cgltf_image *image, const char *texPath, Co
n += stride;
}
rimage = LoadImageFromMemory(".png", data, size);
rimage = LoadImageFromMemory(".png", data, (int)image->buffer_view->size );
RL_FREE(data);
// TODO: Tint shouldn't be applied here!