Fixed up: Move file-static RenderWindow and RenderTexture instances inside functions to fix GL race condition on startup (#682)

This commit is contained in:
Nathan R
2025-03-06 18:31:18 -06:00
committed by Nat Quayle Nelson
parent cf736d1835
commit 598fd4836a
51 changed files with 719 additions and 712 deletions

View File

@@ -17,6 +17,15 @@ enum {
REFRESH_ALL = 0x3f
};
sf::RenderWindow& mainPtr();
sf::RenderWindow& mini_map();
sf::RenderTexture& pc_stats_gworld();
sf::RenderTexture& item_stats_gworld();
sf::RenderTexture& text_area_gworld();
sf::RenderTexture& terrain_screen_gworld();
sf::RenderTexture& text_bar_gworld();
sf::RenderTexture& map_gworld();
sf::RenderTexture& talk_gworld();
void adjust_window_mode();
void init_startup();
void reload_startup();