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

Commit

Permalink
Whoops, need to actually clip to the viewport in the software renderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 15, 2011
1 parent 1e9e878 commit a718ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/software/SDL_render_sw.c
Expand Up @@ -288,7 +288,7 @@ SW_UpdateViewport(SDL_Renderer * renderer)
renderer->viewport.w = surface->w;
renderer->viewport.h = surface->h;
}
//SDL_SetClipRect(data->surface, &renderer->viewport);
SDL_SetClipRect(data->surface, &renderer->viewport);
return 0;
}

Expand Down

0 comments on commit a718ad0

Please sign in to comment.