mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 15:22:11 +02:00
gst-plugin: sink: Stop preferring GL over GLES with GStreamer 1.24+
GStreamer 1.24 have implemented DRM modifiers negotiation that its lack of we were working around with using GL on unpatched GStreamer (non-Flatpak builds). Since GStreamer 1.24 does this and moreover it has disabled DMABuf codepath for non-GLES we should start preferring GLES with this version always.
This commit is contained in:
@@ -152,7 +152,13 @@ _gl_context_handler_context_realize (GstClapperGLContextHandler *self, GdkGLCont
|
||||
* See: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1236 */
|
||||
#if GST_CLAPPER_GL_CONTEXT_HANDLER_HAVE_WAYLAND || GST_CLAPPER_GL_CONTEXT_HANDLER_HAVE_X11_EGL
|
||||
#if !defined(HAVE_GST_PATCHES) && (defined(__i386__) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64))
|
||||
preferred_api = GDK_GL_API_GL;
|
||||
{
|
||||
guint major = 0, minor = 0, micro = 0, nano = 0;
|
||||
|
||||
gst_version (&major, &minor, µ, &nano);
|
||||
if (major == 1 && minor < 24)
|
||||
preferred_api = GDK_GL_API_GL;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user