Skip to content

Commit

Permalink
Don't blit terrain on panels in SDL_gpu builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
lipk committed Jul 17, 2014
1 parent a053fdd commit 47b2199
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/display.cpp
Expand Up @@ -1259,8 +1259,7 @@ void display::drawing_buffer_commit()

#ifdef SDL_GPU
SDL_Rect clip_rect = map_area();
surface screen = get_screen_surface();
clip_rect_setter set_clip_rect(screen, &clip_rect);
GPU_SetClip(get_render_target(), clip_rect.x, clip_rect.y, clip_rect.w, clip_rect.h);

/*
* Info regarding the rendering algorithm.
Expand Down

0 comments on commit 47b2199

Please sign in to comment.