mesa: fix format conversion bug in get_tex_rgba_uncompressed()
authorBrian Paul <brianp@vmware.com>
Mon, 29 Aug 2016 17:18:18 +0000 (11:18 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 29 Aug 2016 23:46:50 +0000 (17:46 -0600)
commitb9b88516f8d3efc902696f1092519e298ceb7cdb
treea64d17336e424cda8b482ffbde9a5b68bf71884d
parentf235dc08ac1dcde6eff87597914583f5b2b9aa70
mesa: fix format conversion bug in get_tex_rgba_uncompressed()

We need to set the need_convert flag with each loop iteration, not
just when the rgba pointer is null.

Bug reported by Markus Müller <mueller@imfusion.de> on mesa-users list.
Fixes new piglit arb_texture_float-get-tex3d test.

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/texgetimage.c