projectM-visualizer / projectm

projectM - Cross-platform Music Visualization Library. Open-source and Milkdrop-compatible.
https://discord.gg/mMrxAqaa3W
GNU Lesser General Public License v2.1
3.33k stars 372 forks source link

A few fixes for emscripten and GLES support #630

Closed kblaschke closed 2 years ago

kblaschke commented 2 years ago

Also fixed a typo in a function call when threading was disabled.

Emscripten builds will now no longer use OpenMP or threads, as the WebAssembly platform doesn't really support multithreading anyways.

Also had to change a few GL constants introduces in recent refactorings which aren't defined in OpenGL ES headers. Line smoothing is not supported by GLES, so the glDisable calls are now wrapped in preprocessor #ìf blocks.