Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed crash when resizing the window with the software renderer.
Browse files Browse the repository at this point in the history
This is similar to the crash fix in the OpenGL renderer in revision 4187
  • Loading branch information
slouken committed Dec 22, 2008
1 parent cd4c9db commit 81d7903
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/SDL_renderer_sw.c
Expand Up @@ -360,8 +360,9 @@ SW_DisplayModeChanged(SDL_Renderer * renderer)
return -1;
}
}
/* Rebind the context to the window area */
data->updateSize = SDL_TRUE;
return 0;
return SW_ActivateRenderer(renderer);
}

static int
Expand Down

0 comments on commit 81d7903

Please sign in to comment.