1
0
Fork 0

Fix: don't show OS error box for non GUI video drivers

pull/7152/head
glx 2019-01-30 22:28:07 +01:00 committed by glx22
parent 530bdf33cc
commit ba38a7ca65
1 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,9 @@ void CDECL error(const char *s, ...)
vseprintf(buf, lastof(buf), s, va);
va_end(va);
ShowOSErrorBox(buf, true);
if (VideoDriver::GetInstance() == NULL || VideoDriver::GetInstance()->HasGUI()) {
ShowOSErrorBox(buf, true);
}
/* Set the error message for the crash log and then invoke it. */
CrashLog::SetErrorMessage(buf);