Workaround in snowballs for fullscreen bug with opengl driver

--HG--
branch : multipass-stereo
This commit is contained in:
kaetemi 2013-07-02 01:08:49 +02:00
parent c5c6f7c871
commit d45813adfc

View file

@ -311,12 +311,15 @@ void initCore()
// Create the window with config file values
Driver->setDisplay(UDriver::CMode(ConfigFile->getVar("ScreenWidth").asInt(),
ConfigFile->getVar("ScreenHeight").asInt(),
ConfigFile->getVar("ScreenDepth").asInt(),
ConfigFile->getVar("ScreenFull").asInt()==0));
ConfigFile->getVar("ScreenDepth").asInt()));
// Set the cache size for the font manager(in bytes)
Driver->setFontManagerMaxMemory(2097152);
// Create a Text context for later text rendering
displayLoadingState("Initialize Text");
Driver->setMode(UDriver::CMode(ConfigFile->getVar("ScreenWidth").asInt(),
ConfigFile->getVar("ScreenHeight").asInt(),
ConfigFile->getVar("ScreenDepth").asInt(),
ConfigFile->getVar("ScreenFull").asInt()==0));
TextContext = Driver->createTextContext(CPath::lookup(ConfigFile->getVar("FontName").asString()));
TextContext->setShaded(true);
TextContext->setKeep800x600Ratio(false);