diff options
author | Brian Paul <brianp@vmware.com> | 2010-02-23 18:55:28 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-02-23 18:57:18 -0700 |
commit | a84575cdc0c8193b2c7858734e2ec6b1ec4511b2 (patch) | |
tree | 19ca537235cf34267fa84ed912b35973ed3622c9 /src/gallium/state_trackers/glx/xlib/glx_api.c | |
parent | f7830dc3916b355452f656dba955804fd7535544 (diff) |
st/glx: improved depth/stencil format selection code
Actually ask the gallium screen what Z/stencil format is supported.
This will let us remove some hacks in the llvmpipe driver.
Diffstat (limited to 'src/gallium/state_trackers/glx/xlib/glx_api.c')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/glx_api.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index 656a69131e..08bf624b5c 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_api.c +++ b/src/gallium/state_trackers/glx/xlib/glx_api.c @@ -689,6 +689,8 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig ) int desiredVisualID = -1; int numAux = 0; + xmesa_init(); + parselist = list; while (*parselist) { @@ -941,9 +943,6 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig ) /* give the visual some useful GLX attributes */ double_flag = GL_TRUE; rgb_flag = GL_TRUE; - depth_size = default_depth_bits(); - stencil_size = STENCIL_BITS; - /* XXX accum??? */ } } else if (level==0) { |