Mesa (master): mesa: Only reference logging symbols in debug builds

Kristian Høgsberg krh at kemper.freedesktop.org
Thu Sep 9 22:01:56 UTC 2010


Module: Mesa
Branch: master
Commit: 6fe1b479ca92b8abc7461d4be1c019bbefe0ef51
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6fe1b479ca92b8abc7461d4be1c019bbefe0ef51

Author: Kristian Høgsberg <krh at bitplanet.net>
Date:   Thu Sep  9 18:00:44 2010 -0400

mesa: Only reference logging symbols in debug builds

---

 src/mesa/main/context.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 66e4183..decc1dd 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1370,6 +1370,8 @@ _mesa_check_init_viewport(GLcontext *ctx, GLuint width, GLuint height)
    }
 }
 
+#ifdef DEBUG
+
 static void
 dispatch_logger(void *data, const char *fmt, ...)
 {
@@ -1391,6 +1393,15 @@ _mesa_set_dispatch(void *table)
    }
 }
 
+#else
+
+void
+_mesa_set_dispatch(void *table)
+{
+   _glapi_set_dispatch(table);
+}
+
+#endif
 /**
  * Bind the given context to the given drawBuffer and readBuffer and
  * make it the current context for the calling thread.




More information about the mesa-commit mailing list