diff options
author | Alan Hourihane <[email protected]> | 2010-07-06 11:42:18 +0100 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2010-07-06 11:42:18 +0100 |
commit | 5a723afabbaad9dcf5da280c6ab56397811de4b8 (patch) | |
tree | f932510728186461f7f90620a975525d8fd161ed | |
parent | 32a9b2799e5e1254fdf84af8248ea86e234d6dd4 (diff) |
llvmpipe: ensure all bins are reset avoids memory corruption.
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_scene.c | 4 |
1 files 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); } } |