[glx] Explicitly set the depth size for GLX visuals

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
This commit is contained in:
Emmanuele Bassi 2009-07-27 15:08:03 +01:00
parent 88e77b25df
commit 6e6d0a5ea6

View 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[] = {