mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-13 21:40:11 +00:00
adding more safety checks
This commit is contained in:
parent
10398723d8
commit
13b67faf2f
@ -54,9 +54,10 @@ RenderingManager::RenderingManager (OEngine::Render::OgreRenderer& _rend, const
|
|||||||
|
|
||||||
// disable unsupported effects
|
// disable unsupported effects
|
||||||
const RenderSystemCapabilities* caps = Root::getSingleton().getRenderSystem()->getCapabilities();
|
const RenderSystemCapabilities* caps = Root::getSingleton().getRenderSystem()->getCapabilities();
|
||||||
if (caps->getNumMultiRenderTargets() < 2)
|
if (caps->getNumMultiRenderTargets() < 2 || !Settings::Manager::getBool("shaders", "Objects"))
|
||||||
Settings::Manager::setBool("shader", "Water", false);
|
Settings::Manager::setBool("shader", "Water", false);
|
||||||
if (!caps->isShaderProfileSupported("fp40") && !caps->isShaderProfileSupported("ps_4_0"))
|
if ( !(caps->isShaderProfileSupported("fp40") || caps->isShaderProfileSupported("ps_4_0"))
|
||||||
|
|| !Settings::Manager::getBool("shaders", "Objects"))
|
||||||
Settings::Manager::setBool("enabled", "Shadows", false);
|
Settings::Manager::setBool("enabled", "Shadows", false);
|
||||||
|
|
||||||
// note that the order is important here
|
// note that the order is important here
|
||||||
|
@ -86,6 +86,7 @@ num lights = 8
|
|||||||
|
|
||||||
[Water]
|
[Water]
|
||||||
# Enable this to get fancy-looking water with reflections and refractions
|
# Enable this to get fancy-looking water with reflections and refractions
|
||||||
|
# Only available if object shaders are on
|
||||||
# All the settings below have no effect if this is false
|
# All the settings below have no effect if this is false
|
||||||
shader = true
|
shader = true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user