From df22829b9c984a826a0b2e39dd6badac2029996d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 20 Feb 2012 11:07:00 -0700 Subject: [PATCH] dri/swrast: use SWRAST_MAX_WIDTH/HEIGHT --- src/mesa/drivers/dri/swrast/swrast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2