src/render/software/SDL_render_sw.c
changeset 8728 c7174f961388
parent 8149 681eb46b8ac4
child 8904 c38e754cafd3
     1.1 --- a/src/render/software/SDL_render_sw.c	Sat Apr 19 10:17:36 2014 -0700
     1.2 +++ b/src/render/software/SDL_render_sw.c	Sat Apr 19 13:15:41 2014 -0700
     1.3 @@ -347,11 +347,9 @@
     1.4  {
     1.5      SW_RenderData *data = (SW_RenderData *) renderer->driverdata;
     1.6      SDL_Surface *surface = data->surface;
     1.7 -    const SDL_Rect *rect = &renderer->clip_rect;
     1.8 -
     1.9      if (surface) {
    1.10 -        if (!SDL_RectEmpty(rect)) {
    1.11 -            SDL_SetClipRect(surface, rect);
    1.12 +        if (renderer->clipping_enabled) {
    1.13 +            SDL_SetClipRect(surface, &renderer->clip_rect);
    1.14          } else {
    1.15              SDL_SetClipRect(surface, NULL);
    1.16          }