swrast: move resampleRow setup code in blit_nearest()
authorBrian Paul <brianp@vmware.com>
Mon, 21 Jan 2013 15:59:25 +0000 (08:59 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 22 Jan 2013 21:53:58 +0000 (14:53 -0700)
commit728bf86a23f6de137c0871ea87b09e75e55468a9
treec5f55821bd9e9cfbd8e85d659edc0ab0b33d9143
parent0a60ea4ddce3d7e0f07f9a8a94cd712c26401911
swrast: move resampleRow setup code in blit_nearest()

The resampleRow setup depends on pixelSize.  For color buffers,
we don't know the pixelSize until we're in the buffer loop.  Move
that code inside the loop.

Fixes: http://bugs.freedesktop.org/show_bug.cgi?id=59541
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/swrast/s_blit.c