You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
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.
The text was updated successfully, but these errors were encountered: