mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
glcontext: try cgl before glx
It was already done by commitf506e80686
but it has been broken by commit45ec777cea
This commit is contained in:
parent
91efa58371
commit
230022fe62
1 changed files with 4 additions and 4 deletions
|
@ -275,6 +275,10 @@ gst_gl_context_new (GstGLDisplay * display)
|
|||
|
||||
user_choice = g_getenv ("GST_GL_PLATFORM");
|
||||
GST_INFO ("creating a context, user choice:%s", user_choice);
|
||||
#if GST_GL_HAVE_PLATFORM_CGL
|
||||
if (!context && (!user_choice || g_strstr_len (user_choice, 5, "cgl")))
|
||||
context = GST_GL_CONTEXT (gst_gl_context_cocoa_new ());
|
||||
#endif
|
||||
#if GST_GL_HAVE_PLATFORM_GLX
|
||||
if (!context && (!user_choice || g_strstr_len (user_choice, 3, "glx")))
|
||||
context = GST_GL_CONTEXT (gst_gl_context_glx_new ());
|
||||
|
@ -283,10 +287,6 @@ gst_gl_context_new (GstGLDisplay * display)
|
|||
if (!context && (!user_choice || g_strstr_len (user_choice, 7, "egl")))
|
||||
context = GST_GL_CONTEXT (gst_gl_context_egl_new ());
|
||||
#endif
|
||||
#if GST_GL_HAVE_PLATFORM_CGL
|
||||
if (!context && (!user_choice || g_strstr_len (user_choice, 5, "cgl")))
|
||||
context = GST_GL_CONTEXT (gst_gl_context_cocoa_new ());
|
||||
#endif
|
||||
#if GST_GL_HAVE_PLATFORM_WGL
|
||||
if (!context && (!user_choice || g_strstr_len (user_choice, 3, "wgl"))) {
|
||||
context = GST_GL_CONTEXT (gst_gl_context_wgl_new ());
|
||||
|
|
Loading…
Reference in a new issue