Fix automation bug caused by unexpected AZ_Error string: (#1269)

[Pass LookModificationComposite] Could not bind shader buffer index
'm_eyeAdaptation' because it has no attachment.

The error message is now ONLY reported if the RHI is not Null.

Signed-off-by: garrieta <garrieta@amazon.com>
This commit is contained in:
galibzon
2021-06-11 12:28:17 -05:00
committed by GitHub
parent cc615a8f32
commit 1d8f1da213
@@ -10,6 +10,7 @@
*
*/
#include <Atom/RHI/RHIUtils.h>
#include <Atom/RHI/CommandList.h>
#include <Atom/RHI/FrameGraphAttachmentInterface.h>
#include <Atom/RHI/FrameGraphBuilder.h>
@@ -165,7 +166,7 @@ namespace AZ
}
else
{
AZ_Error("Pass System", false, "[Pass %s] Could not bind shader buffer index '%s' because it has no attachment.", GetName().GetCStr(), shaderName.GetCStr());
AZ_Error( "Pass System", AZ::RHI::IsNullRenderer(), "[Pass %s] Could not bind shader buffer index '%s' because it has no attachment.", GetName().GetCStr(), shaderName.GetCStr());
binding.m_shaderInputIndex = PassAttachmentBinding::ShaderInputNoBind;
}
}