# HG changeset patch # User rubidium # Date 2012-02-23 21:10:08 # Node ID 91bf304afe2c11cbdb4b9217e60dec595c0fbc8a # Parent 6428045c5673673856c4a1577a3390bcd3bcdda4 (svn r23980) -Fix (r23977): crash when starting with the 32bpp anim blitter diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -261,15 +261,15 @@ static bool CreateMainSurface(uint w, ui 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: