diff options
author | Jakob Bornecrantz <[email protected]> | 2009-10-08 13:05:55 +0200 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2009-10-08 13:42:31 +0200 |
commit | a31d16cbfa5a74299f6b6acd4814d6393f46d66b (patch) | |
tree | ada09978aa9f28962aa9e0edd8d919e363790d03 /src/gallium | |
parent | 76d2ec3a0a047a65ffca70f53848241a3225dad3 (diff) |
st/xorg: Fix depth stencil buffers on old X servers
Sanity checking is for the weak.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_dri2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_dri2.c b/src/gallium/state_trackers/xorg/xorg_dri2.c index 8a362596c75..c41a7cd639d 100644 --- a/src/gallium/state_trackers/xorg/xorg_dri2.c +++ b/src/gallium/state_trackers/xorg/xorg_dri2.c @@ -81,11 +81,14 @@ driDoCreateBuffer(DrawablePtr pDraw, DRI2BufferPtr buffer, unsigned int format) case DRI2BufferStencil: #if defined(DRI2INFOREC_VERSION) && DRI2INFOREC_VERSION > 2 case DRI2BufferDepthStencil: +#else + /* Works on old X servers because sanity checking is for the weak */ + case 9: +#endif if (exa_priv->depth_stencil_tex && !pf_is_depth_stencil(exa_priv->depth_stencil_tex->format)) exa_priv->depth_stencil_tex = NULL; /* Fall through */ -#endif case DRI2BufferDepth: if (exa_priv->depth_stencil_tex) pipe_texture_reference(&tex, exa_priv->depth_stencil_tex); |