From: Brian Paul Date: Thu, 13 Aug 2009 16:29:15 +0000 (-0600) Subject: mesa: s/assert/ASSERT/ in _mesa_reference_texobj() X-Git-Tag: 062012170305~17007 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c10002361c3bc175ec12d667e762e51a2cc79b47;p=profile%2Fivi%2Fmesa.git mesa: s/assert/ASSERT/ in _mesa_reference_texobj() We want the no-op ASSERT for non-debug builds. --- 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) */