DrawGamestates: Don't clear the screen when predraw handler is there

Leave that to the handler.
This commit is contained in:
Sebastian Krzyszkowiak 2022-07-16 18:37:54 +02:00
parent 1e09583c7e
commit 8d614b2c20
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -58,7 +58,7 @@ SYMBOL_INTERNAL void DrawGamestates(struct Game* game) {
game->_priv.loading.gamestate->api->predraw(game, game->_priv.loading.gamestate->data);
}
if (!game->_priv.params.disable_bg_clear && !game->_priv.params.handlers.compositor) {
if (!game->_priv.params.disable_bg_clear && !game->_priv.params.handlers.compositor && !game->_priv.params.handlers.predraw) {
ClearScreen(game);
}