sdl2: software: clear window on mode change

This commit is contained in:
Ronald Kinard 2014-07-23 23:21:19 -05:00
parent 73e99fa96c
commit 4433be194f

View file

@ -224,6 +224,7 @@ static void SDLSetMode(INT32 width, INT32 height, SDL_bool fullscreen)
if (rendermode == render_soft) if (rendermode == render_soft)
{ {
SDL_RenderSetLogicalSize(renderer, width, height); SDL_RenderSetLogicalSize(renderer, width, height);
SDL_RenderClear(renderer);
// Set up Texture // Set up Texture
realwidth = width; realwidth = width;
realheight = height; realheight = height;