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:
Ykkrosh 2011-04-23 18:51:47 +00:00
parent 17eae9d92a
commit 2d0c183afb

View File

@ -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;