Mesa (master): mesa: s/assert/ASSERT/ in _mesa_reference_texobj()
Brian Paul
brianp at kemper.freedesktop.org
Thu Aug 13 18:54:01 UTC 2009
Module: Mesa
Branch: master
Commit: c10002361c3bc175ec12d667e762e51a2cc79b47
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c10002361c3bc175ec12d667e762e51a2cc79b47
Author: Brian Paul <brianp at vmware.com>
Date: Thu Aug 13 10:29:15 2009 -0600
mesa: s/assert/ASSERT/ in _mesa_reference_texobj()
We want the no-op ASSERT for non-debug builds.
---
src/mesa/main/texobj.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index 22657ed..d09c439 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -334,7 +334,7 @@ _mesa_reference_texobj(struct gl_texture_object **ptr,
GLboolean deleteFlag = GL_FALSE;
struct gl_texture_object *oldTex = *ptr;
- assert(valid_texture_object(oldTex));
+ ASSERT(valid_texture_object(oldTex));
_glthread_LOCK_MUTEX(oldTex->Mutex);
ASSERT(oldTex->RefCount > 0);
@@ -357,7 +357,7 @@ _mesa_reference_texobj(struct gl_texture_object **ptr,
if (tex) {
/* reference new texture */
- assert(valid_texture_object(tex));
+ ASSERT(valid_texture_object(tex));
_glthread_LOCK_MUTEX(tex->Mutex);
if (tex->RefCount == 0) {
/* this texture's being deleted (look just above) */
More information about the mesa-commit
mailing list