summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/ffb
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-02-10 13:47:49 +0100
committerMichel Dänzer <daenzer@vmware.com>2009-02-10 13:47:49 +0100
commiteaf15db895e3a5c6c5ccc2f23a4f0fa522855868 (patch)
tree46b35dd11ff17c19c28f8569ca99cd3c7427e2fe /src/mesa/drivers/dri/ffb
parent7e0bc2eb8df6f83a67410cd422b709981f88cd87 (diff)
gallium: Fixups for driCreateConfigs MSAA support.
Add the MSAA samples array or make sure its contents are initialized.
Diffstat (limited to 'src/mesa/drivers/dri/ffb')
-rw-r--r--src/mesa/drivers/dri/ffb/ffb_xmesa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/ffb/ffb_xmesa.c b/src/mesa/drivers/dri/ffb/ffb_xmesa.c
index eb086e3055..00bdcec7a6 100644
--- a/src/mesa/drivers/dri/ffb/ffb_xmesa.c
+++ b/src/mesa/drivers/dri/ffb/ffb_xmesa.c
@@ -642,6 +642,8 @@ ffbFillInModes( __DRIscreenPrivate *psp,
stencil_bits_array[1] = 0;
stencil_bits_array[2] = (stencil_bits == 0) ? 8 : stencil_bits;
+ msaa_samples_array[0] = 0;
+
depth_buffer_factor = ((depth_bits != 0) || (stencil_bits != 0)) ? 3 : 1;
back_buffer_factor = (have_back_buffer) ? 3 : 1;