X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=radiant%2Frenderstate.cpp;fp=radiant%2Frenderstate.cpp;h=6b30a19c4d7fced23411a2e7df0570a195dce965;hb=1f5de90c57966e628f50a7f05d93ac09a5ec38a9;hp=4999dcce9d8c27e1b9b302a5d82ab557bbef876e;hpb=d213b9f7f9ea2e38349ac223138a013a8d027713;p=xonotic%2Fnetradiant.git diff --git a/radiant/renderstate.cpp b/radiant/renderstate.cpp index 4999dcce..6b30a19c 100644 --- a/radiant/renderstate.cpp +++ b/radiant/renderstate.cpp @@ -1577,7 +1577,6 @@ void ShaderCache_Construct(){ GlobalTexturesCache().attach( *g_ShaderCache ); GlobalShaderSystem().attach( *g_ShaderCache ); -#if !defined( DISABLE_DOOM3_LIGHTING ) if ( g_pGameDescription->mGameType == "doom3" ) { g_defaultPointLight = g_ShaderCache->capture( "lights/defaultPointLight" ); //Shader* overbright = @@ -1612,11 +1611,9 @@ void ShaderCache_Construct(){ } #endif } -#endif // !DISABLE_DOOM3_LIGHTING } void ShaderCache_Destroy(){ -#if !defined( DISABLE_DOOM3_LIGHTING ) if ( g_pGameDescription->mGameType == "doom3" ) { g_ShaderCache->release( "lights/defaultPointLight" ); g_ShaderCache->release( "$OVERBRIGHT" ); @@ -1632,7 +1629,6 @@ void ShaderCache_Destroy(){ } #endif } -#endif // !DISABLE_DOOM3_LIGHTING GlobalShaderSystem().detach( *g_ShaderCache ); GlobalTexturesCache().detach( *g_ShaderCache );