mesa: don't call getenv every time _mesa_error is called
authorKeith Whitwell <keithw@vmware.com>
Tue, 14 Jul 2009 15:23:04 +0000 (16:23 +0100)
committerKeith Whitwell <keithw@vmware.com>
Wed, 15 Jul 2009 12:31:50 +0000 (13:31 +0100)
commit6c9d8a6f24db3c947928d72521d5fd544841366e
treec73a4d530c100ee7a9597e91423d3a75bb070e33
parent9aca6769dfb934e15e848f938b7fb31345a8b3b2
mesa: don't call getenv every time _mesa_error is called

Buggy apps can generate thousands of mesa_error calls.  Don't need
to keep calling getenv to retreive the same MESA_DEBUG string each
time.
src/mesa/main/imports.c