diff options
author | Alan Hourihane <[email protected]> | 2008-09-19 14:19:38 +0100 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2008-09-19 14:19:38 +0100 |
commit | 256592807cea9d543d13c1bb04d3f82852293f5c (patch) | |
tree | 60ab029d0ac993b21b25f490feaa00a4d6ed82f0 /src | |
parent | d3172cddbf814b0ce6877faff9a7d73b99272faa (diff) |
bug fix to MSAA visuals
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/common/utils.c | 4 |
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; } } } |