diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-10-14 13:44:41 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-11-18 11:28:17 +0300 |
commit | 8d4460b6c4b4406a3dc873b820dbe94d74437a46 (patch) | |
tree | d5c09873046d5a5c92199b19cdc9ae61bc4de6f9 /source/creator/creator_args.c | |
parent | dc8be23234a86186d9768b47ffcce9d801d6bae7 (diff) |
GHOST: Only spam about X11 errors when using --debug-ghost
This commit adds a new command line argument --debug-ghost and
makes it so X11 errors happening during context initialization
are only printed when this new flag is sued.
There is no need to flood users with errors when their GPU is
not supporting latest OpenGL version. Or, at a very minimum,
the error must be more meaning full.
Differential Revision: https://developer.blender.org/D6057
Diffstat (limited to 'source/creator/creator_args.c')
-rw-r--r-- | source/creator/creator_args.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c index 936bdf52c91..6e3988a5ea6 100644 --- a/source/creator/creator_args.c +++ b/source/creator/creator_args.c @@ -2079,6 +2079,12 @@ void main_args_setup(bContext *C, bArgs *ba) (void *)G_DEBUG_HANDLERS); BLI_argsAdd( ba, 1, NULL, "--debug-wm", CB_EX(arg_handle_debug_mode_generic_set, wm), (void *)G_DEBUG_WM); + BLI_argsAdd(ba, + 1, + NULL, + "--debug-ghost", + CB_EX(arg_handle_debug_mode_generic_set, handlers), + (void *)G_DEBUG_GHOST); BLI_argsAdd(ba, 1, NULL, "--debug-all", CB(arg_handle_debug_mode_all), NULL); BLI_argsAdd(ba, 1, NULL, "--debug-io", CB(arg_handle_debug_mode_io), NULL); |