mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-29 04:06:40 +00:00
Remove the background window trick, which currently doesn't serve any purpose
This commit is contained in:
parent
52ed451ae7
commit
f84db69ade
1 changed files with 0 additions and 9 deletions
|
@ -229,15 +229,6 @@ void OgreRenderer::createWindow(const std::string &title, const WindowSettings&
|
||||||
assert(mRoot);
|
assert(mRoot);
|
||||||
mRoot->initialise(false);
|
mRoot->initialise(false);
|
||||||
|
|
||||||
// create a hidden 1x1 background window to keep resources when recreating the secondary (real) window
|
|
||||||
NameValuePairList params_;
|
|
||||||
params_.insert(std::make_pair("title", title));
|
|
||||||
params_.insert(std::make_pair("FSAA", "0"));
|
|
||||||
params_.insert(std::make_pair("vsync", "false"));
|
|
||||||
params_.insert(std::make_pair("hidden", "true"));
|
|
||||||
Ogre::RenderWindow* hiddenWindow = mRoot->createRenderWindow("InactiveHidden", 1, 1, false, ¶ms_);
|
|
||||||
hiddenWindow->setActive(false);
|
|
||||||
|
|
||||||
NameValuePairList params;
|
NameValuePairList params;
|
||||||
params.insert(std::make_pair("title", title));
|
params.insert(std::make_pair("title", title));
|
||||||
params.insert(std::make_pair("FSAA", settings.fsaa));
|
params.insert(std::make_pair("FSAA", settings.fsaa));
|
||||||
|
|
Loading…
Reference in a new issue