cogl debug: Adds missing guards around debug cogl_args[]
commit 511e5ceb51
accidentally removed the #ifdef COGL_ENABLE_DEBUG
guards around the "cogl-debug" and "cogl-no-debug" cogl_args[] which
this patch restores.
This commit is contained in:
parent
d32b4b1c12
commit
c3917c8da5
@ -157,10 +157,12 @@ cogl_arg_no_debug_cb (const char *key,
|
|||||||
#endif /* COGL_ENABLE_DEBUG */
|
#endif /* COGL_ENABLE_DEBUG */
|
||||||
|
|
||||||
static GOptionEntry cogl_args[] = {
|
static GOptionEntry cogl_args[] = {
|
||||||
|
#ifdef COGL_ENABLE_DEBUG
|
||||||
{ "cogl-debug", 0, 0, G_OPTION_ARG_CALLBACK, cogl_arg_debug_cb,
|
{ "cogl-debug", 0, 0, G_OPTION_ARG_CALLBACK, cogl_arg_debug_cb,
|
||||||
N_("COGL debugging flags to set"), "FLAGS" },
|
N_("COGL debugging flags to set"), "FLAGS" },
|
||||||
{ "cogl-no-debug", 0, 0, G_OPTION_ARG_CALLBACK, cogl_arg_no_debug_cb,
|
{ "cogl-no-debug", 0, 0, G_OPTION_ARG_CALLBACK, cogl_arg_no_debug_cb,
|
||||||
N_("COGL debugging flags to unset"), "FLAGS" },
|
N_("COGL debugging flags to unset"), "FLAGS" },
|
||||||
|
#endif /* COGL_ENABLE_DEBUG */
|
||||||
{ NULL, },
|
{ NULL, },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user