mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
ClearToColor: Avoid re-setting the same target bitmap
This commit is contained in:
parent
4eb91e2f32
commit
86fef86257
1 changed files with 3 additions and 1 deletions
|
@ -137,7 +137,9 @@ SYMBOL_EXPORT void ClearToColor(struct Game* game, ALLEGRO_COLOR color) {
|
|||
al_reset_clipping_rectangle();
|
||||
al_clear_to_color(color);
|
||||
al_set_clipping_rectangle(x, y, w, h);
|
||||
al_set_target_bitmap(target);
|
||||
if (al_get_target_bitmap() != target) {
|
||||
al_set_target_bitmap(target);
|
||||
}
|
||||
}
|
||||
|
||||
/* linear filtering code written by SiegeLord */
|
||||
|
|
Loading…
Reference in a new issue