meta/decompress: Save and restore the sampler using gl_sampler_object instead of...
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 11 Nov 2015 19:01:46 +0000 (11:01 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 11 Jan 2016 23:38:04 +0000 (15:38 -0800)
commitb03ee127d8b064af13ab8874548ed39885c14094
treec7377c8fe6fb5a5a2e1021d40193290c99a15352
parentd4094f64c1c1d94125931c95a2dad04ab1261ff2
meta/decompress: 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.c