forked from 0ad/0ad
Fix use of uninitialised variable, causing errors randomly when GL_ARB_fragment_program_shadow is missing
This was SVN commit r9310.
This commit is contained in:
parent
17eae9d92a
commit
2d0c183afb
@ -501,6 +501,8 @@ void CRenderer::EnumCaps()
|
||||
|
||||
void CRenderer::ReloadShaders()
|
||||
{
|
||||
debug_assert(m->IsOpen);
|
||||
|
||||
typedef std::map<CStr, CStr> Defines;
|
||||
|
||||
Defines defNull;
|
||||
@ -651,7 +653,7 @@ void CRenderer::SetOptionBool(enum Option opt,bool value)
|
||||
break;
|
||||
case OPT_SHADOWS:
|
||||
m_Options.m_Shadows=value;
|
||||
ReloadShaders();
|
||||
MakeShadersDirty();
|
||||
break;
|
||||
case OPT_FANCYWATER:
|
||||
m_Options.m_FancyWater=value;
|
||||
|
Loading…
Reference in New Issue
Block a user