How to generate GL ES2 files.

Create issue
Issue #67 new
Former user created an issue


I am making an application using a subset of gl 3.2 which is compatible with ES2. This is because I want to be able to compile both for desktops and for web using the emscripten C++ -> javascript compiler, and I had this working when I used glew.

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. :)

Comments (3)

  1. Dario Oliveri

    Make a feature request, I'm goin right now to request few features that would be very usefull. If you want to use GLES2 then just avoid to use async buffers( glMap/UnmapBuffer is not available in ES2) and texture arrays, the other stuff are just details

  2. Log in to comment