summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/utils.c
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2008-09-19 14:19:38 +0100
committerAlan Hourihane <[email protected]>2008-09-19 14:19:38 +0100
commit256592807cea9d543d13c1bb04d3f82852293f5c (patch)
tree60ab029d0ac993b21b25f490feaa00a4d6ed82f0 /src/mesa/drivers/dri/common/utils.c
parentd3172cddbf814b0ce6877faff9a7d73b99272faa (diff)
bug fix to MSAA visuals
Diffstat (limited to 'src/mesa/drivers/dri/common/utils.c')
-rw-r--r--src/mesa/drivers/dri/common/utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c
index 14cb68fa253..f2e0f036410 100644
--- a/src/mesa/drivers/dri/common/utils.c
+++ b/src/mesa/drivers/dri/common/utils.c
@@ -662,7 +662,7 @@ driCreateConfigs(GLenum fb_format, GLenum fb_type,
break;
}
- num_modes = num_depth_stencil_bits * num_db_modes * num_accum_bits;
+ num_modes = num_depth_stencil_bits * num_db_modes * num_accum_bits * num_msaa_modes;
configs = _mesa_calloc((num_modes + 1) * sizeof *configs);
if (configs == NULL)
return NULL;
@@ -735,8 +735,6 @@ driCreateConfigs(GLenum fb_format, GLenum fb_type,
__DRI_ATTRIB_TEXTURE_2D_BIT |
__DRI_ATTRIB_TEXTURE_RECTANGLE_BIT :
0;
-
- modes = modes->next;
}
}
}