Patch by Igor V. Kovalenko, with suggested change from Daniel Stone, from freedesktop.org xorg bug #5835. Using this patch will require that the Xorg X server is recompiled against the new version of Mesa which includes this patch in order to get the benefit of it. Theoretically fixes the following bugs (untested): https://bugs.freedesktop.org/show_bug.cgi?id=5835 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=176976 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=176414 --- src/mesa/drivers/dri/common/glcontextmodes.c.old 2005-11-30 02:02:16.000000000 +0300 +++ src/mesa/drivers/dri/common/glcontextmodes.c 2006-02-07 10:38:46.000000000 +0300 @@ -39,6 +39,9 @@ # include "imports.h" # define __glXMemset memset #else +# if defined (HAVE_DIX_CONFIG_H) +# include +# endif # include # include # include "GL/glxint.h"