swrast: rewrite color buffer clearing to use Map/UnmapRenderbuffer()
authorBrian Paul <brianp@vmware.com>
Sat, 24 Dec 2011 15:54:26 +0000 (08:54 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 24 Dec 2011 15:54:26 +0000 (08:54 -0700)
commitc4b5f0cadb18bad22b4c28424723a09832209c6f
treef20a25682318aae0027dddb3f69ec3fa6673ca64
parentf1a2aa5cb338766d7a612b2c82c7ec588ed23d0b
swrast: rewrite color buffer clearing to use Map/UnmapRenderbuffer()

v2: use _mesa_pack_colormask() helper and fix incorrect masking arithmetic

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/swrast/s_clear.c