webatintel / aquarium

BSD 3-Clause "New" or "Revised" License
24 stars 7 forks source link

Allow choosing the underlying GL or GLES library via command-line flags #101

Open hujiajie opened 4 years ago

hujiajie commented 4 years ago

Currently the ANGLE backend cannot be built together with the OpenGL backend, while the expected behavior should be:

When it comes to the WebGL port, there's a problem that Emscripten does not support dlopen("libGLESv2.so", flag) well. However, the WebGL port should always use "system GL", so the plan is to pass -lGLESv2 to the linker as an extra flag and make some C++ code guarded with #ifdef __EMSCRIPTEN__.

JiangYizhou commented 4 years ago

This is great! The branch build ANGLE with OpenGL on Windows by loading System library, but it's broken because of no rebase since last year. https://github.com/webatintel/aquarium/pull/6/files, see this file, src/aquarium-optimized/opengl/OpenGLFunctions.cpp.