meta/generate_mipmap: Save and restore the sampler using gl_sampler_object instead...
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 11 Nov 2015 05:33:52 +0000 (21:33 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 11 Jan 2016 23:38:03 +0000 (15:38 -0800)
commitd6782712a14985d292f060d1fa1684b1dc2c02cd
tree29c5792143a362bab1d5dba1e1eae782abc826c2
parent36f413209f0c3e066578058cdc616a8b0dbb8a97
meta/generate_mipmap: Save and restore the sampler using gl_sampler_object instead of GL API object handle

Some meta operations can be called recursively.  Future changes (the
"Don't pollute the ... namespace" changes) will cause objects with
invalid names to be used.  If a nested meta operation tries to restore
an object named 0xDEADBEEF, it will fail.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/common/meta_generate_mipmap.c