softpipe: fix typo in clear_tile
authorKeith Whitwell <keithw@vmware.com>
Wed, 29 Jul 2009 22:06:22 +0000 (23:06 +0100)
committerKeith Whitwell <keithw@vmware.com>
Tue, 18 Aug 2009 15:55:10 +0000 (16:55 +0100)
src/gallium/drivers/softpipe/sp_tile_cache.c

index 2d82badcec3a64c129e1ad3360b2cfb451eb0c27..c520aef44fa86d8ed17d9dd23db3676f51e98eda 100644 (file)
@@ -225,7 +225,7 @@ clear_tile(struct softpipe_cached_tile *tile,
 
    switch (pf_get_size(format)) {
    case 1:
-      memset(tile->data.any, 0, TILE_SIZE * TILE_SIZE);
+      memset(tile->data.any, clear_value, TILE_SIZE * TILE_SIZE);
       break;
    case 2:
       if (clear_value == 0) {