diff options
author | Kristian Høgsberg <[email protected]> | 2010-09-09 18:00:44 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-09-09 18:00:44 -0400 |
commit | 6fe1b479ca92b8abc7461d4be1c019bbefe0ef51 (patch) | |
tree | 6758cb835f39b0f1145d86b27cebf1099f2ad5b0 /src/mesa/main/context.c | |
parent | 144356f9925fa9d892faa64fa7264ef9f1d7e2b4 (diff) |
mesa: Only reference logging symbols in debug builds
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | 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 66e4183101c..decc1dd77da 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. |