dri/swrast: use SWRAST_MAX_WIDTH/HEIGHT

This commit is contained in:
Brian Paul
2012-02-20 11:07:00 -07:00
parent 3f8a61ffa2
commit df22829b9c
+1 -1
View 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;