From: Alan Hourihane Date: Fri, 19 Sep 2008 13:19:38 +0000 (+0100) Subject: bug fix to MSAA visuals X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=256592807cea9d543d13c1bb04d3f82852293f5c;p=mesa.git bug fix to MSAA visuals --- 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; } } }