diff options
author | Matthew Waters <matthew@centricular.com> | 2015-07-18 17:19:18 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2015-07-18 18:18:22 +1000 |
commit | d5996de5d7b2153f70edda60e993406137ee19b8 (patch) | |
tree | 4b23b7c06bb754fc53fc3391c07f53ef06929085 /ext/qt/qtitem.cc | |
parent | 74711c214df4ab607ff69a428b8e690969a3949e (diff) | |
download | gstreamer-plugins-bad-d5996de5d7b2153f70edda60e993406137ee19b8.tar.gz |
glcontext: fix get_current_gl_api on x11/nvidia drivers
They require to get_proc_address some functions through the
platform specific {glX,egl}GetProcAddress rather than the default
GL library symbol lookup.
Diffstat (limited to 'ext/qt/qtitem.cc')
-rw-r--r-- | ext/qt/qtitem.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/qt/qtitem.cc b/ext/qt/qtitem.cc index fab2c5dcc..7686a7378 100644 --- a/ext/qt/qtitem.cc +++ b/ext/qt/qtitem.cc @@ -262,7 +262,7 @@ QtGLVideoItem::onSceneGraphInitialized () #if GST_GL_HAVE_WINDOW_X11 && defined (HAVE_QT_X11) if (GST_IS_GL_DISPLAY_X11 (this->priv->display)) { platform = GST_GL_PLATFORM_GLX; - gl_api = gst_gl_context_get_current_gl_api (NULL, NULL); + gl_api = gst_gl_context_get_current_gl_api (platform, NULL, NULL); gl_handle = gst_gl_context_get_current_gl_context (platform); if (gl_handle) this->priv->other_context = @@ -273,7 +273,7 @@ QtGLVideoItem::onSceneGraphInitialized () #if GST_GL_HAVE_WINDOW_WAYLAND if (GST_IS_GL_DISPLAY_WAYLAND (this->priv->display)) { platform = GST_GL_PLATFORM_EGL; - gl_api = gst_gl_context_get_current_gl_api (NULL, NULL); + gl_api = gst_gl_context_get_current_gl_api (platform, NULL, NULL); gl_handle = gst_gl_context_get_current_gl_context (platform); if (gl_handle) this->priv->other_context = |