mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Don't reload intrinsic images
This commit is contained in:
parent
19f38c9a83
commit
9cb65c4fcf
1 changed files with 11 additions and 2 deletions
|
@ -895,11 +895,20 @@ idImage::Reload
|
|||
*/
|
||||
void idImage::Reload( bool force, nvrhi::ICommandList* commandList )
|
||||
{
|
||||
// don't break render targets that have this image attached
|
||||
if( opts.isRenderTarget )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// always regenerate functional images
|
||||
if( generatorFunction )
|
||||
{
|
||||
common->DPrintf( "regenerating %s.\n", GetName() );
|
||||
generatorFunction( this, commandList );
|
||||
if( force )
|
||||
{
|
||||
common->DPrintf( "regenerating %s.\n", GetName() );
|
||||
generatorFunction( this, commandList );
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue