mirror of https://github.com/OpenRCT2/OpenRCT2.git
Show exception messages when initializing a drawing engine fails
This commit is contained in:
parent
73b7f3c9f4
commit
6486c4f6ea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue