mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r23980) -Fix (r23977): crash when starting with the 32bpp anim blitter
This commit is contained in:
parent
2015e32361
commit
74785478ec
@ -261,15 +261,15 @@ static bool CreateMainSurface(uint w, uint h)
|
||||
Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
|
||||
blitter->PostResize();
|
||||
|
||||
InitPalette();
|
||||
switch (blitter->UsePaletteAnimation()) {
|
||||
case Blitter::PALETTE_ANIMATION_NONE:
|
||||
case Blitter::PALETTE_ANIMATION_VIDEO_BACKEND:
|
||||
InitPalette();
|
||||
UpdatePalette();
|
||||
break;
|
||||
|
||||
case Blitter::PALETTE_ANIMATION_BLITTER:
|
||||
blitter->PaletteAnimate(_local_palette);
|
||||
if (_video_driver != NULL) blitter->PaletteAnimate(_local_palette);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user