From 9c414991dda1010e651e41c6b048d7a83d1b716a Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Tue, 6 Sep 2016 01:47:46 +0200 Subject: [PATCH] SetupViewport: clear both backbuffer and fontbuffer on setup --- src/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.c b/src/utils.c index 56b6c58..2ea3fab 100644 --- a/src/utils.c +++ b/src/utils.c @@ -294,6 +294,8 @@ SYMBOL_EXPORT void SetupViewport(struct Game *game, struct libsuperderpy_viewpor al_use_transform(&game->projection); al_set_clipping_rectangle(0, 0, al_get_display_width(game->display), al_get_display_height(game->display)); + al_clear_to_color(al_map_rgb(0,0,0)); + al_flip_display(); al_clear_to_color(al_map_rgb(0,0,0)); float resolution = al_get_display_width(game->display) / (float)game->viewport.width;