This commit is contained in:
fgsfds 2024-05-11 14:31:55 +02:00
parent 1502fb8f88
commit f2cfd74721
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ static inline void load_texture(const char *fullpath) {
int w, h;
u64 imgsize = 0;
u8 *imgdata = fs_load_file(fullpath, &imgsize);
u8 *imgdata = fs_load_file(fullpath, (uint64_t *)&imgsize);
if (imgdata) {
// TODO: implement stbi_callbacks or some shit instead of loading the whole texture
u8 *data = stbi_load_from_memory(imgdata, imgsize, &w, &h, NULL, 4);