mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-07 21:56:44 +01:00
libsuperderpy_start: load shaders before loading the loading gamestate
Allows the loading gamestate to use shaders created in common resources.
This commit is contained in:
parent
80f59721f2
commit
a6abd01ec2
1 changed files with 3 additions and 1 deletions
|
@ -345,6 +345,7 @@ SYMBOL_EXPORT int libsuperderpy_start(struct Game* game) {
|
|||
}
|
||||
al_register_event_source(game->_priv.event_queue, al_get_timer_event_source(game->_priv.timer));
|
||||
|
||||
ReloadShaders(game, false);
|
||||
al_flip_display();
|
||||
al_start_timer(game->_priv.timer);
|
||||
|
||||
|
@ -365,9 +366,10 @@ SYMBOL_EXPORT int libsuperderpy_start(struct Game* game) {
|
|||
game->_priv.loading.gamestate->data = (*game->_priv.loading.gamestate->api->Gamestate_Load)(game, NULL);
|
||||
PrintConsole(game, "Loading screen registered.");
|
||||
|
||||
ReloadShaders(game, false);
|
||||
|
||||
game->_priv.timestamp = al_get_time();
|
||||
game->_priv.paused = false;
|
||||
ReloadShaders(game, false);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue