forked from mirrors/0ad
Adds USE_FP_SHADOW to shader context only for GL ARB.
This was SVN commit r26712.
This commit is contained in:
@@ -218,8 +218,11 @@ void CSceneRenderer::ReloadShaders()
|
||||
if (g_RenderingOptions.GetShadows())
|
||||
{
|
||||
m->globalContext.Add(str_USE_SHADOW, str_1);
|
||||
if (g_VideoMode.GetBackendDevice()->GetCapabilities().ARBShadersShadow)
|
||||
if (g_VideoMode.GetBackend() == CVideoMode::Backend::GL_ARB &&
|
||||
g_VideoMode.GetBackendDevice()->GetCapabilities().ARBShadersShadow)
|
||||
{
|
||||
m->globalContext.Add(str_USE_FP_SHADOW, str_1);
|
||||
}
|
||||
if (g_RenderingOptions.GetShadowPCF())
|
||||
m->globalContext.Add(str_USE_SHADOW_PCF, str_1);
|
||||
const int cascadeCount = m->shadow.GetCascadeCount();
|
||||
|
||||
Reference in New Issue
Block a user