[glx] Explicitly set the depth size for GLX visuals
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 27 Jul 2009 14:08:03 +0000 (15:08 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 27 Jul 2009 14:08:03 +0000 (15:08 +0100)
When requesting a GLX visual from the X server we should explicitly
set the GL_DEPTH_SIZE and the GL_ALPHA_SIZE bits, otherwise some
functionality might just not work, or work unreliably.

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1723

clutter/glx/clutter-backend-glx.c

index d97ccec..1c05358 100644 (file)
@@ -624,7 +624,9 @@ clutter_backend_glx_get_visual_info (ClutterBackendX11 *backend_x11,
     GLX_RED_SIZE,     1,
     GLX_GREEN_SIZE,   1,
     GLX_BLUE_SIZE,    1,
+    GLX_ALPHA_SIZE,   1,
     GLX_STENCIL_SIZE, 1,
+    GLX_DEPTH_SIZE,   1,
     0
   };
   int offscreen_gl_attributes[] = {