mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 14:19:41 +00:00
Remove CG shaders from settings window (not fully supported on non-nvidia cards, amd profiles have an instruction limit making them useless)
Can still be used by editing the config file, however.
This commit is contained in:
parent
afc1fa49f6
commit
b81c7d05c6
1 changed files with 1 additions and 17 deletions
|
@ -73,17 +73,6 @@ namespace
|
||||||
return (Ogre::Root::getSingleton ().getRenderSystem ()->getName ().find("OpenGL") != std::string::npos) ? "glsl" : "hlsl";
|
return (Ogre::Root::getSingleton ().getRenderSystem ()->getName ().find("OpenGL") != std::string::npos) ? "glsl" : "hlsl";
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cgAvailable ()
|
|
||||||
{
|
|
||||||
Ogre::Root::PluginInstanceList list = Ogre::Root::getSingleton ().getInstalledPlugins ();
|
|
||||||
for (Ogre::Root::PluginInstanceList::const_iterator it = list.begin(); it != list.end(); ++it)
|
|
||||||
{
|
|
||||||
if ((*it)->getName() == "Cg Program Manager")
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char* checkButtonType = "CheckButton";
|
const char* checkButtonType = "CheckButton";
|
||||||
const char* sliderType = "Slider";
|
const char* sliderType = "Slider";
|
||||||
|
|
||||||
|
@ -366,12 +355,7 @@ namespace MWGui
|
||||||
void SettingsWindow::onShaderModeToggled(MyGUI::Widget* _sender)
|
void SettingsWindow::onShaderModeToggled(MyGUI::Widget* _sender)
|
||||||
{
|
{
|
||||||
std::string val = static_cast<MyGUI::Button*>(_sender)->getCaption();
|
std::string val = static_cast<MyGUI::Button*>(_sender)->getCaption();
|
||||||
if (val == "cg")
|
val = hlslGlsl();
|
||||||
{
|
|
||||||
val = hlslGlsl();
|
|
||||||
}
|
|
||||||
else if (cgAvailable ())
|
|
||||||
val = "cg";
|
|
||||||
|
|
||||||
static_cast<MyGUI::Button*>(_sender)->setCaption(val);
|
static_cast<MyGUI::Button*>(_sender)->setCaption(val);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue