mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
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.
This commit is contained in:
parent
d1ad64fca7
commit
e56df237ee
1 changed files with 2 additions and 2 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue