mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
[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:
parent
88e77b25df
commit
6e6d0a5ea6
@ -624,7 +624,9 @@ clutter_backend_glx_get_visual_info (ClutterBackendX11 *backend_x11,
|
|||||||
GLX_RED_SIZE, 1,
|
GLX_RED_SIZE, 1,
|
||||||
GLX_GREEN_SIZE, 1,
|
GLX_GREEN_SIZE, 1,
|
||||||
GLX_BLUE_SIZE, 1,
|
GLX_BLUE_SIZE, 1,
|
||||||
|
GLX_ALPHA_SIZE, 1,
|
||||||
GLX_STENCIL_SIZE, 1,
|
GLX_STENCIL_SIZE, 1,
|
||||||
|
GLX_DEPTH_SIZE, 1,
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
int offscreen_gl_attributes[] = {
|
int offscreen_gl_attributes[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user