dri/swrast: use SWRAST_MAX_WIDTH/HEIGHT
authorBrian Paul <brianp@vmware.com>
Mon, 20 Feb 2012 18:07:00 +0000 (11:07 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 24 Feb 2012 15:03:09 +0000 (08:03 -0700)
src/mesa/drivers/dri/swrast/swrast.c

index d18dd09278061d5992612153cb89beadf7193775..22d71bf1024b307f25db8c2fe0eabf4bbea78935 100644 (file)
@@ -469,7 +469,7 @@ dri_create_buffer(__DRIscreen * sPriv,
     dPriv->driverPrivate = drawable;
     drawable->dPriv = dPriv;
 
-    drawable->row = malloc(MAX_WIDTH * 4);
+    drawable->row = malloc(SWRAST_MAX_WIDTH * 4);
     if (drawable->row == NULL)
        goto drawable_fail;