(svn r26544) [1.4] -Backport from trunk:
- Fix: [Windows] Crash when the operating system performs the "paint" callback during window creation [FS#5994] (r26539, r26538) - Fix: OpenBSD compilation [FS#5992] (r26523) - Fix: prevent from ever reading huge (or negative) amounts of data in strgen (r26521) - Fix: Severity rating of dedicated server messages during world generation (r26518)
This commit is contained in:
@@ -282,9 +282,9 @@ static bool SwitchNewGRFBlitter()
|
||||
break;
|
||||
}
|
||||
|
||||
if (!_video_driver->AfterBlitterChange()) {
|
||||
if (!VideoDriver::GetInstance()->AfterBlitterChange()) {
|
||||
/* Failed to switch blitter, let's hope we can return to the old one. */
|
||||
if (BlitterFactory::SelectBlitter(cur_blitter) == NULL || !_video_driver->AfterBlitterChange()) usererror("Failed to reinitialize video driver. Specify a fixed blitter in the config");
|
||||
if (BlitterFactory::SelectBlitter(cur_blitter) == NULL || !VideoDriver::GetInstance()->AfterBlitterChange()) usererror("Failed to reinitialize video driver. Specify a fixed blitter in the config");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user