On Sat, 2007-10-27 at 21:45 +0100, Chris Rankin wrote:
> Hi,
> 
> Recently, World of Warcraft has been crashing for me in OpenGL mode with an 
> X-protocol error.
> Basically, an attempt to create a GLX context was returning an error from a 
> previous attempt to
> destroy one. The following patch fixes the problem for me:

Dang, good catch, and it's the exact right fix.  Committed.

thanks,
Kristian

> Cheers,
> Chris
> 
> diff --git a/src/glx/x11/glxcmds.c b/src/glx/x11/glxcmds.c
> index 707e398..9bdef98 100644
> --- a/src/glx/x11/glxcmds.c
> +++ b/src/glx/x11/glxcmds.c
> @@ -105,6 +105,7 @@ static void GarbageCollectDRIDrawables(Display *dpy, 
> __GLXsc
>             }
>         } while (__glxHashNext(sc->drawHash, &draw, (void *)&pdraw) == 1);
>      }
> +    XSync(dpy, GL_FALSE);
>  
>      XSetErrorHandler(oldXErrorHandler);
>  }
> 
> 
> 
>       ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> now.
> http://uk.answers.yahoo.com/ 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to