Emmanuele Bassi
69856a9aac
x11: Don't update GLX visuals with EGL
...
We're going to get into a messy situation, with both GLX and EGL
initialized.
If we're already using EGL, skip the whole cache.
2021-05-10 21:19:14 +01:00
Emmanuele Bassi
a57f79006a
x11: Move the damage fences into the GLX code
...
It's GLX-specific anyway, there's no need to complicate things by having
half the code in the generic path, and half in the GLX one.
2021-05-10 20:44:35 +01:00
Emmanuele Bassi
9a19e3c741
x11: Add profiler marks for SwapBuffers
2021-05-10 20:44:35 +01:00
Emmanuele Bassi
8924d614c0
x11: Use EGL for GL support
...
This makes the X11 backend similar to the Wayland one, when it comes to
OpenGL.
Fall back to GLX only if EGL support is not available.
2021-05-10 20:44:35 +01:00
Emmanuele Bassi
03f76eccf5
x11: Decouple GLX from GdkX11GLContext
...
If we want to add an EGL implementation for the X11 backend, we are
going to need to move the GLX bits into their own class. The first step
is to declare GdkX11GLContext as an abstract type, and then subclass it
into a GdkX11GLContextGLX type, which includes the whole GLX
implementation.
2021-05-10 20:44:35 +01:00