summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-06-22 23:05:33 +0200
committerJakob Bornecrantz <[email protected]>2009-06-22 23:34:18 +0200
commit5d0a1d4241ccfe40fcf593edf1f5bac970db35c0 (patch)
treedcc67f1735267c8af6887ea48f30c4ca64f883b2 /src/gallium/state_trackers
parentc80ce5ac90b1e0ac7a72cd41c314aa2000bfecf5 (diff)
st/dri: Fix typo when checking for depth formats
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/dri/dri_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c
index c36bfe30ff8..e1e9b507a6d 100644
--- a/src/gallium/state_trackers/dri/dri_screen.c
+++ b/src/gallium/state_trackers/dri/dri_screen.c
@@ -112,7 +112,7 @@ dri_fill_in_modes(struct dri_screen *screen,
stencil_bits_array[depth_buffer_factor++] = 0;
screen->d_depth_bits_last = FALSE;
}
- if (p_screen->is_format_supported(p_screen, PIPE_FORMAT_Z24S8_UNORM,
+ if (p_screen->is_format_supported(p_screen, PIPE_FORMAT_S8Z24_UNORM,
PIPE_TEXTURE_2D,
PIPE_TEXTURE_USAGE_DEPTH_STENCIL, 0)) {
depth_bits_array[depth_buffer_factor] = 24;