After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 611067 - Shared opengl context not shared correctly
Shared opengl context not shared correctly
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-gl
0.10.x
Other Windows
: Normal normal
: 0.10.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-02-25 12:40 UTC by Nicholas Panayis
Modified: 2010-03-23 11:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nicholas Panayis 2010-02-25 12:40:49 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
Comment 1 Julien Isorce 2010-03-09 00:45:17 UTC
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