mesa: fix assertion failure in TexImage
authorMarek Olšák <marek.olsak@amd.com>
Mon, 22 Jul 2019 19:28:42 +0000 (15:28 -0400)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 22 Jul 2019 21:45:57 +0000 (14:45 -0700)
commitc37df5feaa267080b836bbcf0f2727ec9f1d288e
tree7261a923c4ea21d2effac7b37f9eb81d0cbb2604
parent5c5f11d1dd3b52e80483f132236c690cbbc3ea0b
mesa: fix assertion failure in TexImage

Check the assertion after error checking.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111194

Fixes: 9dd1f7cec01 ("mesa: pass gl_texture_object as arg to not depend on state")
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/teximage.c