1. Add nullptr checks to prevent crashes when non-critical shaders fail to compile. (#5451)

2. Add a higher "launch_ap_timeout" for Mac because launching a newly built/downloaded AP can take a while.

Signed-off-by: amzn-sj <srikkant@amazon.com>
This commit is contained in:
SJ
2021-11-10 09:31:59 -08:00
committed by GitHub
parent adf3357176
commit 0c546828d6
4 changed files with 29 additions and 2 deletions
@@ -443,7 +443,12 @@ namespace AZ
{
// load shader
shader = RPI::LoadCriticalShader(filePath);
AZ_Error("ReflectionProbeFeatureProcessor", shader, "Failed to find asset for shader [%s]", filePath);
if (shader == nullptr)
{
AZ_Error("ReflectionProbeFeatureProcessor", false, "Failed to find asset for shader [%s]", filePath);
return;
}
// store drawlist tag
drawListTag = shader->GetDrawListTag();