projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff78d6d
)
mesa: Silence "'valid_texture_object' defined but not used" warning.
author
Vinson Lee
<vlee@vmware.com>
Sat, 18 Sep 2010 06:43:38 +0000
(23:43 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Sat, 18 Sep 2010 06:43:38 +0000
(23:43 -0700)
src/mesa/main/texobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texobj.c
b/src/mesa/main/texobj.c
index 1df165cf6a803ff1e6e2db01daafd2069d44890f..c96226df5976e499fedd30f7a7702683432093d5 100644
(file)
--- 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);