Benjamin Otte
bdb49720be
x11: Move the EGL display into the private struct
...
There's no need to use g_object_set_data() for it.
We can also stop caching it elsewhere because we know the display has
it.
And finally, we can remove the display->have_egl boolean and use
display->egl_display != NULL instead. We initialize the display at
startup, so that variable is the perfect indicator.
2021-07-22 16:06:05 +02:00
Benjamin Otte
1d448a2b8a
x11: Pass the display, not the screen
...
Screens are on their way out.
2021-07-22 16:06:05 +02:00
Benjamin Otte
8dfc627e46
glx: Don't initialize GLX multiple times.
...
Either it is initialized or it isn't.
2021-07-22 16:06:05 +02:00
Matthias Clasen
fff2b3c710
gdk: Clean up docs syntax
...
Replace leftover gtk-doc syntax (#Type) with backquotes.
2021-05-22 17:25:26 -04:00
Emmanuele Bassi
b3d6928f35
x11: Pair eglInitialize with eglTerminate
...
If we bail out after EGL initialization we want to go back to a stable
state and not leave EGL hanging.
2021-05-13 18:23:50 +01:00
Emmanuele Bassi
3d8ba93f59
x11: Loosen the match for the NVIDIA driver
...
It seems nVidia puts a different string in the GL_VENDOR than the one it
uses for GLX.
2021-05-13 18:22:30 +01:00
Emmanuele Bassi
abc2d7e4a9
x11: Add EGLDisplay getter
...
Getting an EGLDisplay object is messy; might as well expose the function
we use internally to save some time.
2021-05-11 12:42:16 +01:00
Emmanuele Bassi
c35a6725b9
x11: Always fall back to GLX on NVIDIA
...
At least until we can guarantee that EGL-X11 works fine there.
2021-05-10 20:44:35 +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