Open Wiguwbe opened 2 years ago
Are you using shaders? WebGL has some differences there you'll need to account for.
Share a small repro where you run into this and I'll see if I can help.
Also if you are using a bash shell, your build script is very subtly wrong. See #1319 / see the latest instructions https://github.com/liballeg/allegro5/blob/master/README_sdl.txt Possibly you aren't really passing FULL_ES2
to emscripten so aren't getting full webgl compatibility. To confirm, put an echo
just before emcmake command
Hi there,
I'm exploring allegro to build with emscripten for WebGL and I'm encountering these errors ( / warnings ) when drawing primitives:
(Clearing to color works fine)
I'm building with:
(here i'm removing LIBPNG to use emscripten's)
I've also tried without the
-D EMSCRIPTEN=ON
.Not sure if this is prioritary though.
Not sure if it has something to do with SDL2 or OpenGL ES2.
Let me know if there is anything I'm doing wrong here.
Cheers