getteximage: avoid to lookup textures with id 0
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 1 Mar 2017 21:54:09 +0000 (22:54 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 6 Mar 2017 17:01:38 +0000 (18:01 +0100)
commit5ae54c0cf7acfb792d2ca9b22cd5fb5ba811d32c
tree2974006027539e22dd1792c0d3c3f4126f5392f7
parent5ac6ab701f05ed7e5b9e8c277ca8eba085a98315
getteximage: avoid to lookup textures with id 0

This fixes the following assertion when the key is 0.

main/hash.c:181: _mesa_HashLookup_unlocked: Assertion `key' failed.

Fixes: 633c959fae ("getteximage: Return correct error value when texure object is not found")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/texgetimage.c