mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-03 09:22:45 +00:00
Add CVar r_displayGLSLCompilerMessages to suppress AMD driver warnings
The AMD drivers output a lot of useless warnings when compiling the shaders. Those are pretty annoying, especially as idRenderProgManager::LoadGLSLShader prints out the whole shader with them.. So I added this CVar to suppress them (when it's set to 0)
This commit is contained in:
parent
d5898abfa4
commit
e2359ba333
1 changed files with 4 additions and 2 deletions
|
@ -34,7 +34,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
idCVar r_skipStripDeadCode( "r_skipStripDeadCode", "0", CVAR_BOOL, "Skip stripping dead code" );
|
||||
idCVar r_useUniformArrays( "r_useUniformArrays", "1", CVAR_BOOL, "" );
|
||||
|
||||
// DG: the AMD drivers output a lot of useless warnings which are fscking annoying, added this CVar to suppress them
|
||||
idCVar r_displayGLSLCompilerMessages( "r_displayGLSLCompilerMessages", "1", CVAR_BOOL | CVAR_ARCHIVE, "Show info messages the GPU driver outputs when compiling the shaders" );
|
||||
// DG end
|
||||
|
||||
#define VERTEX_UNIFORM_ARRAY_NAME "_va_"
|
||||
#define FRAGMENT_UNIFORM_ARRAY_NAME "_fa_"
|
||||
|
@ -1190,7 +1192,7 @@ GLuint idRenderProgManager::LoadGLSLShader( GLenum target, const char* name, idL
|
|||
{
|
||||
//idLib::Printf( "%s program %s from %s compiled to run on hardware\n", typeName, GetName(), GetFileName() );
|
||||
}
|
||||
else
|
||||
else if( r_displayGLSLCompilerMessages.GetBool() ) // DG: check for the CVar I added above
|
||||
{
|
||||
idLib::Printf( "While compiling %s program %s\n", ( target == GL_FRAGMENT_SHADER ) ? "fragment" : "vertex" , inFile.c_str() );
|
||||
|
||||
|
|
Loading…
Reference in a new issue