Don't reload intrinsic images

This commit is contained in:
Robert Beckebans 2022-03-10 19:42:06 +01:00
parent 19f38c9a83
commit 9cb65c4fcf

View file

@ -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;
}