diff --git a/src/engine/renderer/gl_shader.cpp b/src/engine/renderer/gl_shader.cpp index 02499747b9..93f5c94278 100644 --- a/src/engine/renderer/gl_shader.cpp +++ b/src/engine/renderer/gl_shader.cpp @@ -729,7 +729,7 @@ static std::string GenEngineConstants() { AddDefine( str, "r_showLightTiles", 1 ); } - if ( r_normalMapping->integer ) + if ( glConfig2.normalMapping ) { AddDefine( str, "r_normalMapping", 1 ); } @@ -739,16 +739,11 @@ static std::string GenEngineConstants() { AddDefine( str, "r_liquidMapping", 1 ); } - if ( r_specularMapping->integer ) + if ( glConfig2.specularMapping ) { AddDefine( str, "r_specularMapping", 1 ); } - if ( r_physicalMapping->integer ) - { - AddDefine( str, "r_physicalMapping", 1 ); - } - if ( r_glowMapping->integer ) { AddDefine( str, "r_glowMapping", 1 );