From: Alan Hourihane Date: Tue, 6 Jul 2010 10:42:18 +0000 (+0100) Subject: llvmpipe: ensure all bins are reset avoids memory corruption. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a723afabbaad9dcf5da280c6ab56397811de4b8;p=mesa.git llvmpipe: ensure all bins are reset avoids memory corruption. --- diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c index 845c175cf2e..e8d36bbdc50 100644 --- a/src/gallium/drivers/llvmpipe/lp_scene.c +++ b/src/gallium/drivers/llvmpipe/lp_scene.c @@ -162,8 +162,8 @@ lp_scene_reset(struct lp_scene *scene ) /* Free all but last binner command lists: */ - for (i = 0; i < scene->tiles_x; i++) { - for (j = 0; j < scene->tiles_y; j++) { + for (i = 0; i < TILES_X; i++) { + for (j = 0; j < TILES_Y; j++) { lp_scene_bin_reset(scene, i, j); } }