I noticed this when looking into Matts locking changes. Other objects are like
ly also doing this check more times then required.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev
In all cases the comparison is either alreay done, or in the case
of deletes comparing against NULL.
gcc wasn't optimising it away either
---
src/mesa/main/samplerobj.c | 13 ++---
src/mesa/main/samplerobj.h | 11 +--
2 files changed, 7 insertions(+), 17 deletions(-)
diff --git a