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:
+6
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user