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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user