mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
mesa: Only reference logging symbols in debug builds
This commit is contained in:
parent
144356f992
commit
6fe1b479ca
1 changed files with 11 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue