qt: Use wglShareLists() workaround unconditionally.

Sometimes wglCreateContextAttribsARB() exists, but
isn't functional (some Intel drivers), so it's
easiest to do the workaround unconditionally.
This commit is contained in:
Jan Schmidt 2016-08-16 00:40:53 +10:00
parent f52491d978
commit a50b7c24da

View file

@ -174,7 +174,7 @@ gst_qt_get_gl_wrapcontext (GstGLDisplay * display,
#if GST_GL_HAVE_WINDOW_WIN32 && GST_GL_HAVE_PLATFORM_WGL && defined (HAVE_QT_WIN32) #if GST_GL_HAVE_WINDOW_WIN32 && GST_GL_HAVE_PLATFORM_WGL && defined (HAVE_QT_WIN32)
g_return_val_if_fail (context != NULL, FALSE); g_return_val_if_fail (context != NULL, FALSE);
if (!wglGetProcAddress ("wglCreateContextAttribsARB")) { G_STMT_START {
GstGLWindow *window; GstGLWindow *window;
HDC device; HDC device;
@ -184,6 +184,10 @@ gst_qt_get_gl_wrapcontext (GstGLDisplay * display,
* *
* The workaround here is to temporarily disable Qt's GL context while we * The workaround here is to temporarily disable Qt's GL context while we
* set up our own. * set up our own.
*
* Sometimes wglCreateContextAttribsARB()
* exists, but isn't functional (some Intel drivers), so it's easiest to do this
* unconditionally.
*/ */
*context = gst_gl_context_new (display); *context = gst_gl_context_new (display);
window = gst_gl_context_get_window (*context); window = gst_gl_context_get_window (*context);
@ -204,7 +208,7 @@ gst_qt_get_gl_wrapcontext (GstGLDisplay * display,
} }
#endif #endif
gst_gl_context_activate (*wrap_glcontext, FALSE); gst_gl_context_activate (*wrap_glcontext, FALSE);
} } G_STMT_END;
return TRUE; return TRUE;
} }