File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -6069,6 +6069,8 @@ shader_t *R_FindShader( const char *name, int flags )
6069
6069
6070
6070
hash = generateHashValue ( strippedName, FILE_HASH_SIZE );
6071
6071
6072
+ const shader_t *firstRegistration = nullptr ;
6073
+
6072
6074
// see if the shader is already loaded
6073
6075
for ( sh = shaderHashTable[ hash ]; sh; sh = sh->next )
6074
6076
{
@@ -6084,11 +6086,16 @@ shader_t *R_FindShader( const char *name, int flags )
6084
6086
return sh;
6085
6087
}
6086
6088
6087
- Log::Verbose ( " shader %s registered with varying flags: previously with 0x%X, now with 0x%X" ,
6088
- strippedName, sh->registerFlags , flags );
6089
+ firstRegistration = sh;
6089
6090
}
6090
6091
}
6091
6092
6093
+ if ( firstRegistration != nullptr )
6094
+ {
6095
+ Log::Verbose ( " shader %s registered with varying flags: first time with 0x%X, now with 0x%X" ,
6096
+ strippedName, firstRegistration->registerFlags , flags );
6097
+ }
6098
+
6092
6099
shader.altShader [ 0 ].index = flags; // save for later use (in case of alternative shaders)
6093
6100
6094
6101
// make sure the render thread is stopped, because we are probably
You can’t perform that action at this time.
0 commit comments