From: Brian Paul Date: Mon, 20 Feb 2012 18:07:00 +0000 (-0700) Subject: dri/swrast: use SWRAST_MAX_WIDTH/HEIGHT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df22829b9c984a826a0b2e39dd6badac2029996d;p=mesa.git dri/swrast: use SWRAST_MAX_WIDTH/HEIGHT --- diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c index d18dd092780..22d71bf1024 100644 --- a/src/mesa/drivers/dri/swrast/swrast.c +++ b/src/mesa/drivers/dri/swrast/swrast.c @@ -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;