[Mesa-dev] [PATCH] check if glx_displays->dpy == dpy and update glx_display
Kristian Høgsberg
krh at bitplanet.net
Thu Jul 29 13:02:44 PDT 2010
On Thu, Jul 29, 2010 at 12:58 PM, Niels Ole Salscheider
<niels_ole at salscheider-online.de> wrote:
> Hello,
>
> in src/glx/glxext.c line 146 following dpy should be removed from the
> glx_displays list. But it does not handle the case when dpy is the first
> item in glx_displays or when glx_displays is empty.
Argh, I hate deleting from a single linked list. But the fix is a
matter of just changing
- (*prev)->next = priv->next;
to
+ (*prev) = priv->next;
thanks,
Kristian
More information about the mesa-dev
mailing list