projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
144356f
)
mesa: Only reference logging symbols in debug builds
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 9 Sep 2010 22:00:44 +0000
(18:00 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 9 Sep 2010 22:00:44 +0000
(18:00 -0400)
src/mesa/main/context.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/context.c
b/src/mesa/main/context.c
index 66e4183101cb1ebdfc596a8e2456dc953fdc178f..decc1dd77da69c395b6f8b5bafabc80143f61034 100644
(file)
--- 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.