1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00

Show exception messages when initializing a drawing engine fails

This commit is contained in:
Manuel Vögele
2016-09-13 18:28:44 +02:00
parent 73b7f3c9f4
commit 6486c4f6ea

View File

@@ -92,11 +92,13 @@ extern "C"
if (_drawingEngineType == DRAWING_ENGINE_SOFTWARE)
{
_drawingEngineType = DRAWING_ENGINE_NONE;
log_error(ex.GetMessage());
log_fatal("Unable to initialise a drawing engine.");
exit(-1);
}
else
{
log_error(ex.GetMessage());
log_error("Unable to initialise drawing engine. Falling back to software.");
// Fallback to software