mesa: return old name for deleted samplers for SAMPLER_BINDING queries
authorDaniel Scharrer <daniel@constexpr.org>
Fri, 28 Aug 2015 09:45:36 +0000 (11:45 +0200)
committerFredrik Höglund <fredrik@kde.org>
Fri, 28 Aug 2015 16:08:39 +0000 (18:08 +0200)
commit05161596137994ab4b31e054d5afbff877c0a074
treedadc4aeccee55b78a1405af51df2f9bb67ad7b14
parent5aaaaebf22c920745d577c49e463d23b90ba5ea8
mesa: return old name for deleted samplers for SAMPLER_BINDING queries

If the sampler object has been deleted in the same context the binding
will have been cleared. If it has been deleted in another context, the
spec does not say what should returned. None of the other binding point
queries check for deletion in another context.

Also, as names of deleted objects are free for reuse, the current code
didn't even work reliably.

Reviewed-by: Fredrik Höglund <fredrik@kde.org>
Signed-off-by: Fredrik Höglund <fredrik@kde.org>
src/mesa/main/get.c