mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 22:46:35 +00:00
qt/x11: also pass the window for gstgl -> qt context
Removes this warning from Qt: QGLXContext: Multiple configs for FBConfig ID -1 QSGContext::initialize: depth buffer support missing, expect rendering errors Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/575>
This commit is contained in:
parent
05108c2898
commit
7f6fb07f85
1 changed files with 4 additions and 1 deletions
|
@ -307,9 +307,12 @@ qt_opengl_native_context_from_gst_gl_context (GstGLContext * context)
|
||||||
#if GST_GL_HAVE_WINDOW_X11 && defined (HAVE_QT_X11)
|
#if GST_GL_HAVE_WINDOW_X11 && defined (HAVE_QT_X11)
|
||||||
if (platform == GST_GL_PLATFORM_GLX) {
|
if (platform == GST_GL_PLATFORM_GLX) {
|
||||||
GstGLDisplay *display = gst_gl_context_get_display (context);
|
GstGLDisplay *display = gst_gl_context_get_display (context);
|
||||||
|
GstGLWindow *window = gst_gl_context_get_window (context);
|
||||||
Display *xdisplay = (Display *) gst_gl_display_get_handle (display);
|
Display *xdisplay = (Display *) gst_gl_display_get_handle (display);
|
||||||
|
Window win = gst_gl_window_get_window_handle (window);
|
||||||
|
gst_object_unref (window);
|
||||||
gst_object_unref (display);
|
gst_object_unref (display);
|
||||||
return QVariant::fromValue(QGLXNativeContext((GLXContext) handle, xdisplay));
|
return QVariant::fromValue(QGLXNativeContext((GLXContext) handle, xdisplay, win));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if GST_GL_HAVE_PLATFORM_EGL && (defined (HAVE_QT_WAYLAND) || defined (HAVE_QT_EGLFS) || defined (HAVE_QT_ANDROID))
|
#if GST_GL_HAVE_PLATFORM_EGL && (defined (HAVE_QT_WAYLAND) || defined (HAVE_QT_EGLFS) || defined (HAVE_QT_ANDROID))
|
||||||
|
|
Loading…
Reference in a new issue