However now I have switched over to glLoadGen and I generated a 3.2 profile, included the files and ditched glew and everything works fine. Except running the emscripten js build. When I run my application I get "getProcAddress failed for glGetStringi" which I assume is because glLoadGen loads all 3.2 functions and not just the ES2 subset?
In any case I wanted to try to generate an ES2 profile to use when I build with emscripten to see if that helps but I can't seem to find information on how to run glLoadGen to get es2 compatible files.
Any help in how to generate those files or ideas on how to solve the issue in general would be appreciated. :)