From e6195bf5a32cedfa0e705acf0e41a88f248ba707 Mon Sep 17 00:00:00 2001 From: Nicholas Panayis Date: Tue, 9 Mar 2010 01:35:42 +0100 Subject: [PATCH] [415/906] gstglwindow_win32: share opengl context in correct order Allow to use the opengl context sharing feature if the original context has been used already. This is only possible on win32 with wglShareLists because on other backends, the sharing is made when a context is created. This new feature is only usefull when using external context because gst-gl internally makes sure that the orginal context is not already used when sharing it. Fix bug #611067 --- gst-libs/gst/gl/gstglwindow_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglwindow_win32.c b/gst-libs/gst/gl/gstglwindow_win32.c index 43ce633f98..7181d98776 100644 --- a/gst-libs/gst/gl/gstglwindow_win32.c +++ b/gst-libs/gst/gl/gstglwindow_win32.c @@ -473,7 +473,7 @@ window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) GetLastError ()); if (priv->external_gl_context) { - if (!wglShareLists (priv->gl_context, priv->external_gl_context)) + if (!wglShareLists (priv->external_gl_context, priv->gl_context)) g_debug ("failed to share opengl context %lud with %lud\n", (gulong) priv->gl_context, (gulong) priv->external_gl_context); else