Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-10-14 13:44:41 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-11-18 11:28:17 +0300
commit8d4460b6c4b4406a3dc873b820dbe94d74437a46 (patch)
treed5c09873046d5a5c92199b19cdc9ae61bc4de6f9 /source/blender/windowmanager/intern/wm_window.c
parentdc8be23234a86186d9768b47ffcce9d801d6bae7 (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/blender/windowmanager/intern/wm_window.c')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 937cc8e7467..7a5f4bf8367 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -1638,6 +1638,7 @@ void wm_ghost_init(bContext *C)
}
g_system = GHOST_CreateSystem();
+ GHOST_SystemInitDebug(g_system, G.debug & G_DEBUG_GHOST);
if (C != NULL) {
GHOST_AddEventConsumer(g_system, consumer);