[Mesa-dev] [PATCH 14/23] dri/swrast: use SWRAST_MAX_WIDTH/HEIGHT

Brian Paul brian.e.paul at gmail.com
Mon Feb 20 12:15:02 PST 2012


From: Brian Paul <brianp at vmware.com>

---
 src/mesa/drivers/dri/swrast/swrast.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c
index d18dd09..22d71bf 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;
 
-- 
1.7.3.4



More information about the mesa-dev mailing list