Re: [Mesa-dev] [PATCH] Fix glGetInteger*(GL_SAMPLER_BINDING).

2013-03-11 Thread Eric Anholt
Alan Hourihane writes: > On 03/06/13 18:36, Brian Paul wrote: >> On 03/06/2013 11:23 AM, Alan Hourihane wrote: >>> If the sampler object has been deleted on another context, an >>> alternative context may reference the old sampler. So ensure the sampler >>> object still exists. >> >> Alan, is thi

Re: [Mesa-dev] [PATCH] Fix glGetInteger*(GL_SAMPLER_BINDING).

2013-03-07 Thread Alan Hourihane
On 03/07/13 00:12, Brian Paul wrote: On 03/06/2013 11:46 AM, Alan Hourihane wrote: On 03/06/13 18:36, Brian Paul wrote: On 03/06/2013 11:23 AM, Alan Hourihane wrote: If the sampler object has been deleted on another context, an alternative context may reference the old sampler. So ensure the s

Re: [Mesa-dev] [PATCH] Fix glGetInteger*(GL_SAMPLER_BINDING).

2013-03-06 Thread Brian Paul
On 03/06/2013 11:46 AM, Alan Hourihane wrote: On 03/06/13 18:36, Brian Paul wrote: On 03/06/2013 11:23 AM, Alan Hourihane wrote: If the sampler object has been deleted on another context, an alternative context may reference the old sampler. So ensure the sampler object still exists. Alan, is

Re: [Mesa-dev] [PATCH] Fix glGetInteger*(GL_SAMPLER_BINDING).

2013-03-06 Thread Alan Hourihane
On 03/06/13 18:36, Brian Paul wrote: On 03/06/2013 11:23 AM, Alan Hourihane wrote: If the sampler object has been deleted on another context, an alternative context may reference the old sampler. So ensure the sampler object still exists. Alan, is this specified somewhere in a spec? I can't f

[Mesa-dev] [PATCH] Fix glGetInteger*(GL_SAMPLER_BINDING).

2013-03-06 Thread Alan Hourihane
If the sampler object has been deleted on another context, an alternative context may reference the old sampler. So ensure the sampler object still exists. Signed-off-by: Alan Hourihane --- src/mesa/main/get.c| 12 +++- src/mesa/main/samplerobj.c |2 +- src/mesa/main/sampl

Re: [Mesa-dev] [PATCH] Fix glGetInteger*(GL_SAMPLER_BINDING).

2013-03-06 Thread Brian Paul
On 03/06/2013 11:23 AM, Alan Hourihane wrote: If the sampler object has been deleted on another context, an alternative context may reference the old sampler. So ensure the sampler object still exists. Alan, is this specified somewhere in a spec? I can't find a description of this behaviour a