commit aafbdbb8a3f68d5847cfbdb9e18d21e6f6333c9d
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Fri Sep 18 10:03:26 2015 +0200
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Fri Sep 18 10:03:26 2015 +0200
Make sure the pillarboxes are kept clear each frame
thanks again @bradharding for this suggestion
---
src/i_video.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/i_video.c b/src/i_video.c
index 435c79a8..11c34e08 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1092,8 +1092,6 @@ void I_FinishUpdate (void)
CreateUpscaledTexture(resize_w, resize_h);
screen_width = resize_w;
screen_height = resize_h;
- SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
- SDL_RenderClear(renderer);
need_resize = false;
palette_to_set = true;
}
@@ -1160,6 +1158,10 @@ void I_FinishUpdate (void)
SDL_UpdateTexture(texture, NULL, rgbabuffer->pixels, rgbabuffer->pitch);
+ // Make sure the pillarboxes are kept clear each frame.
+
+ SDL_RenderClear(renderer);
+
// Render this intermediate texture into the upscaled texture
// using "nearest" integer scaling.