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 /intern/ghost/GHOST_ISystem.h
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 'intern/ghost/GHOST_ISystem.h')
-rw-r--r--intern/ghost/GHOST_ISystem.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_ISystem.h b/intern/ghost/GHOST_ISystem.h
index b781de266bc..4634eb1bc66 100644
--- a/intern/ghost/GHOST_ISystem.h
+++ b/intern/ghost/GHOST_ISystem.h
@@ -458,6 +458,20 @@ class GHOST_ISystem {
const char * /*link*/,
GHOST_DialogOptions /*dialog_options*/) const = 0;
+ /***************************************************************************************
+ * Debugging
+ ***************************************************************************************/
+
+ /**
+ * Specify whether debug messages are to be shown.
+ */
+ virtual void initDebug(bool is_debug_enabled) = 0;
+
+ /**
+ * Check whether debug messages are to be shown.
+ */
+ virtual bool isDebugEnabled() = 0;
+
protected:
/**
* Initialize the system.