format shader compiling errors better

This commit is contained in:
zeromus 2020-06-20 22:25:15 -04:00
parent f6f7847b95
commit 4319096b50
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ namespace BizHawk.Client.EmuHawk.Filters
var shader = shaders[i] = new RetroShader(Owner, content, debug);
if (!shader.Available)
{
Errors += $"===================\r\nPass {i}:\r\n{shader.Errors}\n";
Errors += $"===================\r\nPass {i}:\r\n{(shader.Errors??"").Replace("\n","\r\n")}\n";
return;
}
}