diff -ru mesa-demos-8.0.1/src/egl/eglut/eglut_x11.c mesa-demos-8.0.1.ok/src/egl/eglut/eglut_x11.c --- mesa-demos-8.0.1/src/egl/eglut/eglut_x11.c 2010-07-07 19:57:15.000000000 +0200 +++ mesa-demos-8.0.1.ok/src/egl/eglut/eglut_x11.c 2012-11-11 19:47:10.370198001 +0100 @@ -38,7 +38,7 @@ /* The X window visual must match the EGL config */ visTemplate.visualid = vid; visInfo = XGetVisualInfo(_eglut->native_dpy, - VisualIDMask, &visTemplate, &num_visuals); + VisualNoMask, &visTemplate, &num_visuals); if (!visInfo) _eglutFatal("failed to get an visual of id 0x%x", vid);