Graphics/MaterialPipeline: Fix error when failing to override a shader
This commit is contained in:
parent
e36374dfc4
commit
a00dd39c51
|
|
@ -31,6 +31,8 @@ namespace Nz
|
|||
|
||||
void OverrideShader(const String& path, String* source)
|
||||
{
|
||||
ErrorFlags errFlags(ErrorFlag_Silent | ErrorFlag_ThrowExceptionDisabled);
|
||||
|
||||
File shaderFile(path, Nz::OpenMode_ReadOnly | Nz::OpenMode_Text);
|
||||
if (shaderFile.IsOpen())
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue