From 47b219923342b97f3574ecd6abdff27c123733ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boldizs=C3=A1r=20Lipka?= Date: Fri, 11 Jul 2014 10:31:39 +0200 Subject: [PATCH] Don't blit terrain on panels in SDL_gpu builds. --- src/display.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/display.cpp b/src/display.cpp index 8fad5829f3ce..39837f04b79e 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -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.