diff --git a/src/pc/gfx/gfx_pc.c b/src/pc/gfx/gfx_pc.c index a78f2ffd..5b30dd5b 100644 --- a/src/pc/gfx/gfx_pc.c +++ b/src/pc/gfx/gfx_pc.c @@ -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);