From 6e6d0a5ea611a99438ae455c1f485e882f621863 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 27 Jul 2009 15:08:03 +0100 Subject: [PATCH] [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 --- clutter/glx/clutter-backend-glx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clutter/glx/clutter-backend-glx.c b/clutter/glx/clutter-backend-glx.c index d97cceccf..1c053589c 100644 --- a/clutter/glx/clutter-backend-glx.c +++ b/clutter/glx/clutter-backend-glx.c @@ -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[] = {