summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-09-17 23:43:38 -0700
committerVinson Lee <vlee@vmware.com>2010-09-17 23:43:38 -0700
commitc32bac57ed445e48856d74113364287ed6e5cdd4 (patch)
tree779f2ce805df4a160ee039835b302d9abdac972b
parentff78d6dcc07c0951cddc72e76cad355239a43c73 (diff)
mesa: Silence "'valid_texture_object' defined but not used" warning.
-rw-r--r--src/mesa/main/texobj.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index 1df165cf6a..c96226df59 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -330,7 +330,11 @@ _mesa_reference_texobj(struct gl_texture_object **ptr,
GLboolean deleteFlag = GL_FALSE;
struct gl_texture_object *oldTex = *ptr;
- ASSERT(valid_texture_object(oldTex));
+ {
+ GLboolean valid = valid_texture_object(oldTex);
+ ASSERT(valid);
+ (void) valid;
+ }
_glthread_LOCK_MUTEX(oldTex->Mutex);
ASSERT(oldTex->RefCount > 0);