incompatible function pointer types (web build)
carteeeee opened this issue · 2 comments
carteeeee commented
Describe the bug
when i compile sm64ex (us rom) for the web, it gives a large error that seems to be an issue with opengl (see attached screenshot)
To Reproduce
Steps to reproduce the behavior:
- extract game assets
- apply 60fps patch
- build with the flags
VERSION=us TARGET_WEB=1 BETTERCAMERA=1 NODRAWINGDISTANCE=0 TEXTURE_FIX=1 EXT_OPTIONS_MENU=1 EXTERNAL_DATA=0 RENDER_API=GL
Expected behavior
it should finish compiling
Desktop (please complete the following information):
- OS: ubuntu 22.04
- architecture: x86_64
- latest emsdk ver as of the time i wrote this (oct 15 2023)
Additional context
the build runs fine for a regular pc target
fgsfdsfgs commented
I guess new versions of emcc have made this an error by default or default to -Werror or something.
In gfx_opengl.c, change line 532 from
static void gfx_opengl_upload_texture(uint8_t *rgba32_buf, int width, int height)
to
static void gfx_opengl_upload_texture(const uint8_t *rgba32_buf, int width, int height)
carteeeee commented
i changed the code to what you said and it compiled fine. thank you!
