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

Commit

Permalink
Fixed clobbering viewport when window is resized when using the softw…
Browse files Browse the repository at this point in the history
…are renderer. The viewport adjustment is already handled in the top level rendering code.
  • Loading branch information
slouken committed Aug 7, 2013
1 parent 42e679f commit 6437a1d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/render/software/SDL_render_sw.c
Expand Up @@ -114,8 +114,6 @@ SW_ActivateRenderer(SDL_Renderer * renderer)
SDL_Surface *surface = SDL_GetWindowSurface(renderer->window);
if (surface) {
data->surface = data->window = surface;
renderer->viewport.w = surface->w;
renderer->viewport.h = surface->h;

SW_UpdateViewport(renderer);
SW_UpdateClipRect(renderer);
Expand Down

0 comments on commit 6437a1d

Please sign in to comment.