From 1d8f1da2137ef2ce7d2236aad0d3887cb2495c0e Mon Sep 17 00:00:00 2001 From: galibzon <66021303+galibzon@users.noreply.github.com> Date: Fri, 11 Jun 2021 12:28:17 -0500 Subject: [PATCH] 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 --- Gems/Atom/RPI/Code/Source/RPI.Public/Pass/RenderPass.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gems/Atom/RPI/Code/Source/RPI.Public/Pass/RenderPass.cpp b/Gems/Atom/RPI/Code/Source/RPI.Public/Pass/RenderPass.cpp index 3e52130f6f..2c88ca60c9 100644 --- a/Gems/Atom/RPI/Code/Source/RPI.Public/Pass/RenderPass.cpp +++ b/Gems/Atom/RPI/Code/Source/RPI.Public/Pass/RenderPass.cpp @@ -10,6 +10,7 @@ * */ +#include #include #include #include @@ -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; } }