mesa: don't call valid_texture_object() in non-debug builds
authorBrian Paul <brianp@vmware.com>
Mon, 20 Sep 2010 14:19:08 +0000 (08:19 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 20 Sep 2010 14:21:00 +0000 (08:21 -0600)
commit55228878420733e77a09c67d5175e90e4b2e7245
tree9a181fa8547bf5bec3a40b672bcf3c51e64c09cc
parente053d62aa573651abdd78666d299272c8219a3aa
mesa: don't call valid_texture_object() in non-debug builds

This reverts commit c32bac57ed445e48856d74113364287ed6e5cdd4
and silences the warning differently.

The _mesa_reference_texobj() function is called quite a bit and
we don't want to call valid_texture_object() all the time in non-
debug builds.
src/mesa/main/texobj.c