From 74785478ec78cda428d607f6f18b9665bb9896f1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 23 Feb 2012 21:10:08 +0000 Subject: (svn r23980) -Fix (r23977): crash when starting with the 32bpp anim blitter --- src/video/sdl_v.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/video/sdl_v.cpp') diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp index bce7340f6..34d31212e 100644 --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -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: -- cgit v1.2.3-54-g00ecf