swaywm / wlroots

A modular Wayland compositor library
https://gitlab.freedesktop.org/wlroots/wlroots/
MIT License
2.15k stars 341 forks source link

Allow compositors to use desktop OpenGL #1908

Open emersion opened 4 years ago

emersion commented 4 years ago

Some compositors might want to use GL features only supported on desktop GL.

I don't know if it's reasonable to use getProcAddress for all GL symbols and expect the GLES2 renderer to work with all supersets of GLES2. If not, we should probably leave desktop GL support up to compositors.


wlroots has migrated to gitlab.freedesktop.org. This issue has been moved to:

https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1908

emersion commented 4 years ago

A few GLES features seem specific to GLES (ie. not available on desktop GL), and there are extensions that bring them to desktop GL:

It doesn't seem like we're using any of those atm.

emersion commented 4 years ago

This is actually something xserver/glamor does: https://gitlab.freedesktop.org/xorg/xserver/blob/master/glamor%2Fglamor_egl.c#L962