openscenegraph / OpenSceneGraph

OpenSceneGraph git repository
http://www.openscenegraph.org
Other
3.25k stars 1.42k forks source link

Generalize EGL support on windows #1134

Closed ghost closed 5 months ago

ghost commented 2 years ago

Currently the EGL support on Windows expects the EGL/Angle platform, however there are other EGL implementations available like Imagination Technologies' PVRVFrame. This change adds a compile-time check for EGL/Angle, if unavailable a more generic way for getting the EGL display handle is chosen.

This PR also contains a fix for the GraphicsWindowWin32 OpenGL context creation when using EGL which only worked if GLES3 was available.