summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2016-08-16 00:40:53 +1000
committerJan Schmidt <jan@centricular.com>2016-08-16 02:34:02 +1000
commitb470c4ed064c03d197789a039578842039e8da41 (patch)
tree8bf8d8e6c872295534c0666ce62447b6d5a1d63d
parentf2b983967c0b0f2a16fde8710aa6f4464b5630c1 (diff)
downloadgstreamer-plugins-bad-b470c4ed064c03d197789a039578842039e8da41.tar.gz
qt: Use wglShareLists() workaround unconditionally.
Sometimes wglCreateContextAttribsARB() exists, but isn't functional (some Intel drivers), so it's easiest to do the workaround unconditionally.
-rw-r--r--ext/qt/gstqtglutility.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/qt/gstqtglutility.cc b/ext/qt/gstqtglutility.cc
index 84061202c..4d6d31864 100644
--- a/ext/qt/gstqtglutility.cc
+++ b/ext/qt/gstqtglutility.cc
@@ -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)
g_return_val_if_fail (context != NULL, FALSE);
- if (!wglGetProcAddress ("wglCreateContextAttribsARB")) {
+ G_STMT_START {
GstGLWindow *window;
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
* 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);
window = gst_gl_context_get_window (*context);
@@ -204,7 +208,7 @@ gst_qt_get_gl_wrapcontext (GstGLDisplay * display,
}
#endif
gst_gl_context_activate (*wrap_glcontext, FALSE);
- }
+ } G_STMT_END;
return TRUE;
}