mirror of
https://github.com/sm64pc/sm64ex.git
synced 2025-01-22 07:32:01 -05:00
fix #555
This commit is contained in:
parent
1502fb8f88
commit
f2cfd74721
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue