OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 1 Sep 2016 10:39:46 +0000 (11:39 +0100)
commit7c583adfb56fb24ebdc8524c50210e270c1fdcce
tree1a913ee0b0eea6625860a173e34fd9cb961f32db
parentf70585e56a63ca962e52c6f3030d6f70b8cbad52
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>
(cherry picked from commit b9b88516f8d3efc902696f1092519e298ceb7cdb)
src/mesa/main/texgetimage.c