GNOME Bugzilla – Bug 611067
Shared opengl context not shared correctly
Last modified: 2010-03-23 11:34:08 UTC
Attempting to use the opengl context sharing feature fails if the original opengl context has been 'used' already. Patch below changes the arguments to wglShareLists so that the new opengl context is used to share against the existing one: c:\gst-plugins-gl\gst-libs\gst\gl>diff gstglwindow_win32.c old_gstglwindow_win32.c 479c479 < if (!wglShareLists (priv->external_gl_context, priv->gl_context)) --- > if (!wglShareLists (priv->gl_context, priv->external_gl_context)) Nick
commit 08a15c61c35229483c7ccc2442f3ab933816dc4b Author: Nicholas Panayis <nick@movency.com> Date: Tue Mar 9 01:35:42 2010 +0100 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