From 8d4460b6c4b4406a3dc873b820dbe94d74437a46 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 14 Oct 2019 12:44:41 +0200 Subject: 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 --- source/blender/windowmanager/intern/wm_window.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/windowmanager/intern/wm_window.c') 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); -- cgit v1.2.3