GS:MTL: Include full error messages in aborts

This commit is contained in:
TellowKrinkle 2023-08-08 18:42:16 -05:00 committed by Connor McLaughlin
parent a622e3bda6
commit edff9ae684
1 changed files with 3 additions and 3 deletions

View File

@ -673,7 +673,7 @@ MRCOwned<id<MTLFunction>> GSDeviceMTL::LoadShader(NSString* name)
{
NSString* msg = [NSString stringWithFormat:@"Failed to load shader %@: %@", name, [err localizedDescription]];
Console.Error("%s", [msg UTF8String]);
pxFailRel("Failed to load shader, check the log for more details.");
pxFailRel([msg UTF8String]);
}
return fn;
}
@ -689,7 +689,7 @@ MRCOwned<id<MTLRenderPipelineState>> GSDeviceMTL::MakePipeline(MTLRenderPipeline
{
NSString* msg = [NSString stringWithFormat:@"Failed to create pipeline %@: %@", name, [err localizedDescription]];
Console.Error("%s", [msg UTF8String]);
pxFailRel("Failed to create pipeline, check the log for more details.");
pxFailRel([msg UTF8String]);
}
return res;
}
@ -709,7 +709,7 @@ MRCOwned<id<MTLComputePipelineState>> GSDeviceMTL::MakeComputePipeline(id<MTLFun
{
NSString* msg = [NSString stringWithFormat:@"Failed to create pipeline %@: %@", name, [err localizedDescription]];
Console.Error("%s", [msg UTF8String]);
pxFailRel("Failed to create pipeline, check the log for more details.");
pxFailRel([msg UTF8String]);
}
return res;
}