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 /intern/ghost/GHOST_C-api.h | |
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 'intern/ghost/GHOST_C-api.h')
-rw-r--r-- | intern/ghost/GHOST_C-api.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index 720929ce945..ba46a868df6 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -59,6 +59,11 @@ typedef int (*GHOST_EventCallbackProcPtr)(GHOST_EventHandle event, GHOST_TUserDa extern GHOST_SystemHandle GHOST_CreateSystem(void); /** + * Specifies whether debug messages are to be enabled for the specific system handle. + */ +extern void GHOST_SystemInitDebug(GHOST_SystemHandle systemhandle, int is_debug_enabled); + +/** * Disposes the one and only system. * \param systemhandle The handle to the system * \return An indication of success. |