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:
authorCampbell Barton <campbell@blender.org>2022-09-27 10:05:08 +0300
committerCampbell Barton <campbell@blender.org>2022-09-27 10:14:32 +0300
commitb6a7541f87c5ed07634eb829af3abdb8239aca18 (patch)
treefc8fae83946c733b9fcecbc0509191fbe0a4a325 /intern/ghost/GHOST_ISystem.h
parent78952518e7c8fbb4a7866004d03f8004703f6934 (diff)
GHOST: exit with an error when GHOST cannot be initialized
When the GHOST back-end Blender was built with isn't supported, Blender would crash on startup without any useful information. This could happen when building X11 only, then running on Wayland. Now show a list of the GHOST back-ends that were attempted and exit with an error code instead of crashing.
Diffstat (limited to 'intern/ghost/GHOST_ISystem.h')
-rw-r--r--intern/ghost/GHOST_ISystem.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/ghost/GHOST_ISystem.h b/intern/ghost/GHOST_ISystem.h
index da6233456c3..05ed089809a 100644
--- a/intern/ghost/GHOST_ISystem.h
+++ b/intern/ghost/GHOST_ISystem.h
@@ -117,9 +117,10 @@ class GHOST_ISystem {
public:
/**
* Creates the one and only system.
+ * \param verbose: report back-ends that were attempted no back-end could be loaded.
* \return An indication of success.
*/
- static GHOST_TSuccess createSystem();
+ static GHOST_TSuccess createSystem(bool verbose);
static GHOST_TSuccess createSystemBackground();
/**