OSDN Git Service

Only enable verbose NoOp dispatch if DEBUG is defined
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 4 Jan 2010 04:24:13 +0000 (23:24 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 4 Jan 2010 04:24:13 +0000 (23:24 -0500)
commit2b218d94b51ce04467795c30d2426204986e3249
tree7f8ce2cc4ac69f151c954fb85bbb8e61f4457ebd
parentc3047e73f78b4f337a2f66acdc95133d61a2b535
Only enable verbose NoOp dispatch if DEBUG is defined

By default we generate a function per GL entry point to warn if it's
called without a context set.  This is to allow the function to print
it's name in the warning.  By using a generic function that doesn't print
the function name in the non-DEBUG case, we reduce libGL size from
320008 bytes to 283144 bytes (11%).
src/mesa/glapi/glapi.c