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
1 changed files with 2 additions and 0 deletions

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