From 5a723afabbaad9dcf5da280c6ab56397811de4b8 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Tue, 6 Jul 2010 11:42:18 +0100 Subject: llvmpipe: ensure all bins are reset avoids memory corruption. --- src/gallium/drivers/llvmpipe/lp_scene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- cgit v1.2.3