Graphics/MaterialPipeline: Fix error when failing to override a shader

This commit is contained in:
Lynix 2016-12-21 18:25:22 +01:00
parent e36374dfc4
commit a00dd39c51
1 changed files with 2 additions and 0 deletions

View File

@ -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())
{