mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-08 06:06:43 +01:00
don't reload shaders multiple times when loading multiple gamestates
This commit is contained in:
parent
e293047aba
commit
a314ad2d6d
1 changed files with 4 additions and 1 deletions
|
@ -443,7 +443,6 @@ SYMBOL_INTERNAL void libsuperderpy_mainloop(void* g) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
al_set_new_bitmap_flags(data.bitmap_flags);
|
al_set_new_bitmap_flags(data.bitmap_flags);
|
||||||
ReloadShaders(game, false);
|
|
||||||
|
|
||||||
game->_priv.loading.progress++;
|
game->_priv.loading.progress++;
|
||||||
CalculateProgress(game);
|
CalculateProgress(game);
|
||||||
|
@ -463,6 +462,10 @@ SYMBOL_INTERNAL void libsuperderpy_mainloop(void* g) {
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (game->_priv.loading.loaded) {
|
||||||
|
ReloadShaders(game, false);
|
||||||
|
}
|
||||||
|
|
||||||
bool gameActive = false;
|
bool gameActive = false;
|
||||||
tmp = game->_priv.gamestates;
|
tmp = game->_priv.gamestates;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue