Whoops, need to actually clip to the viewport in the software renderer.
authorSam Lantinga <slouken@libsdl.org>
Tue, 15 Feb 2011 14:10:50 -0800
changeset 5298 7b1cac2c2230
parent 5297 1800dc39b74c
child 5299 33987021a1ed
Whoops, need to actually clip to the viewport in the software renderer.
src/render/software/SDL_render_sw.c
--- a/src/render/software/SDL_render_sw.c	Tue Feb 15 13:59:59 2011 -0800
+++ b/src/render/software/SDL_render_sw.c	Tue Feb 15 14:10:50 2011 -0800
@@ -288,7 +288,7 @@
         renderer->viewport.w = surface->w;
         renderer->viewport.h = surface->h;
     }
-    //SDL_SetClipRect(data->surface, &renderer->viewport);
+    SDL_SetClipRect(data->surface, &renderer->viewport);
     return 0;
 }