mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
[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
This commit is contained in:
parent
9a49a81c22
commit
e6195bf5a3
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
GetLastError ());
|
GetLastError ());
|
||||||
|
|
||||||
if (priv->external_gl_context) {
|
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",
|
g_debug ("failed to share opengl context %lud with %lud\n",
|
||||||
(gulong) priv->gl_context, (gulong) priv->external_gl_context);
|
(gulong) priv->gl_context, (gulong) priv->external_gl_context);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue