Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Whoops, need to actually clip to the viewport in the software renderer.

  • Loading branch information
slouken committed Feb 15, 2011
1 parent 1e9e878 commit a718ad0934716c3b3885b5b5c01ac32fb0ffda6d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/render/software/SDL_render_sw.c
@@ -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;
}

0 comments on commit a718ad0

Please sign in to comment.