Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample fails on Wayland session #2

Open
gkv311 opened this issue Sep 23, 2021 · 0 comments
Open

Sample fails on Wayland session #2

gkv311 opened this issue Sep 23, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@gkv311
Copy link
Owner

gkv311 commented Sep 23, 2021

Sample works with X11 session, where GTK relies on GLX, but fails on Wayland session, where GTK relies on EGL.
TKOpenGl doesn't yet implement such combinations - it is either uses GLX (HAVE_XLIB configuration flag) or EGL, not both at once.

However, TKOpenGles (since OCCT 7.6.0) is always built using EGL. This could be used to make builds compatible with both X11 and Wayland sessions (although with limited functionality of OpenGL ES, but still better than nothing).

For this, Gtk::GLArea::set_use_es(true)/gtk_gl_area_set_use_es(true) should be called and sample code should be updated to be linked with TKOpenGles and to wrap EGL context instead of GLX.

GTK 4.4.0 release notes also indicated:

On X11 we use EGL, falling back to GLX if needed

So that in future it might be possible building TKOpenGl (desktop OpenGL) with only EGL and without GLX support compatible with GTK4.4+, but it is unclear when "falling back" is used.

@gkv311 gkv311 added the enhancement New feature or request label Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant