aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-06-27 19:55:37 +0200
committerJakob Bornecrantz <[email protected]>2009-06-27 19:55:37 +0200
commit1ac72aedb24c56c7158f770f4297516b3bf1899d (patch)
treeec4cb43bfc4368ee748c949825586b0d6616483b /src/gallium/state_trackers/dri
parentdbb56687c83845cc20aee7243e437a32e5c79a70 (diff)
st/dri: Fix last depth bits logic
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r--src/gallium/state_trackers/dri/dri_screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c
index e1e9b507a6d..98bf68ccba7 100644
--- a/src/gallium/state_trackers/dri/dri_screen.c
+++ b/src/gallium/state_trackers/dri/dri_screen.c
@@ -117,14 +117,14 @@ dri_fill_in_modes(struct dri_screen *screen,
PIPE_TEXTURE_USAGE_DEPTH_STENCIL, 0)) {
depth_bits_array[depth_buffer_factor] = 24;
stencil_bits_array[depth_buffer_factor++] = 8;
- screen->sd_depth_bits_last = FALSE;
+ screen->sd_depth_bits_last = TRUE;
} else if (p_screen->is_format_supported(p_screen, PIPE_FORMAT_Z24S8_UNORM,
PIPE_TEXTURE_2D,
PIPE_TEXTURE_USAGE_DEPTH_STENCIL,
0)) {
depth_bits_array[depth_buffer_factor] = 24;
stencil_bits_array[depth_buffer_factor++] = 8;
- screen->sd_depth_bits_last = TRUE;
+ screen->sd_depth_bits_last = FALSE;
}
msaa_samples_array[0] = 0;