st/mesa: recreate sampler view on context change v3
authorChristian König <christian.koenig@amd.com>
Sat, 22 Mar 2014 20:30:07 +0000 (21:30 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 24 Mar 2014 16:50:38 +0000 (17:50 +0100)
commit92e543c45da4581b1940178a94e6f2d66c749367
tree0407d9f793cc031643f0d3b8c9d4a452ec9836ae
parenteabfadf4af2a5edcaad17163fdfaa715b0091804
st/mesa: recreate sampler view on context change v3

With shared glx contexts it is possible that a texture is create and used
in one context and then used in another one resulting in incorrect
sampler view usage.

v2: avoid template copy
v3: add XXX comment

Signed-off-by: Christian König <christian.koenig@amd.com>
Cc: "10.0 10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_texture.c