mesa: don't call Driver.TexEnv with invalid arguments
authorTapani Pälli <tapani.palli@intel.com>
Tue, 29 May 2018 11:24:10 +0000 (14:24 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 31 May 2018 06:24:17 +0000 (09:24 +0300)
commitc983c6abaf6fae767f404825e0fa913c75914279
tree5a22483a6e46044df43cc5ac0d8e40fac747bf56
parentd511bba2f92566c512c86c5f51bd756834cbd444
mesa: don't call Driver.TexEnv with invalid arguments

Patch skips useless and possibly dangerous calls down to the driver
in case invalid arguments were given. I noticed this would be happening
with demo of Darwinia game. AFAIK this does not fix anything but makes
this path safer and more like how other API functions are implemented.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/texenv.c