bug fix to MSAA visuals
authorAlan Hourihane <alanh@tungstengraphics.com>
Fri, 19 Sep 2008 13:19:38 +0000 (14:19 +0100)
committerAlan Hourihane <alanh@tungstengraphics.com>
Fri, 19 Sep 2008 13:19:38 +0000 (14:19 +0100)
src/mesa/drivers/dri/common/utils.c

index 14cb68fa253a5ee5e0bbf611224dae2fae88f399..f2e0f0364106c8f66102eda4eb7fb58ba46d9484 100644 (file)
@@ -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;
                }
            }
        }