SetupViewport: clear both backbuffer and fontbuffer on setup

This commit is contained in:
Sebastian Krzyszkowiak 2016-09-06 01:47:46 +02:00
parent 9c3d284a90
commit 9c414991dd

View file

@ -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;