diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index fd4568848..38ce0d804 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -229,7 +229,6 @@ void MainWindow::eventClose(){ // ===================================================== int glestMain(int argc, char** argv){ - Shared::Graphics::ImageRegisterer::registerImageReaders(); SystemFlags::enableNetworkDebugInfo = true; SystemFlags::enableDebugText = true; diff --git a/source/shared_lib/include/graphics/ImageReaders.h b/source/shared_lib/include/graphics/ImageReaders.h index 82f01195d..e6773671d 100644 --- a/source/shared_lib/include/graphics/ImageReaders.h +++ b/source/shared_lib/include/graphics/ImageReaders.h @@ -31,8 +31,7 @@ namespace ImageRegisterer { bool registerImageReaders(); //Since you can't call void methods here, I have used a method doing nothing except initializing the image Readers -// this static initialisation relies on other static initialisations. == bad! [was quick-fixed, registerImageReaders() is called from main()] -// static bool readersRegistered = registerImageReaders(); //should always return true, this should guarantee that the readers are registered <--> ImageReaders is included anywhere + static bool readersRegistered = registerImageReaders(); //should always return true, this should guarantee that the readers are registered <--> ImageReaders is included anywhere } }} //end namespace