dmabuf: Let the EGL code initialize GL

The EGL downloader initialization already calls prepare_gl(), so no need
to call it in init_dmabuf_formats(), too.
This commit is contained in:
Benjamin Otte 2023-12-21 13:25:16 +01:00
parent d2a85abf79
commit 96152303a6

View File

@ -1932,8 +1932,6 @@ gdk_display_init_dmabuf (GdkDisplay *self)
#ifdef HAVE_DMABUF #ifdef HAVE_DMABUF
if (!GDK_DISPLAY_DEBUG_CHECK (self, DMABUF_DISABLE)) if (!GDK_DISPLAY_DEBUG_CHECK (self, DMABUF_DISABLE))
{ {
gdk_display_prepare_gl (self, NULL);
#ifdef HAVE_EGL #ifdef HAVE_EGL
gdk_display_add_dmabuf_downloader (self, gdk_dmabuf_get_egl_downloader (self, builder)); gdk_display_add_dmabuf_downloader (self, gdk_dmabuf_get_egl_downloader (self, builder));
#endif #endif