Shader: Fix shader serialization

This commit is contained in:
Jérôme Leclercq
2022-03-10 12:31:00 +01:00
parent 39a2992791
commit bf7f06ac4c
4 changed files with 48 additions and 12 deletions

View File

@@ -191,7 +191,7 @@ void MainWindow::OnCompile()
fileName += ".shader";
Nz::File file(fileName.toStdString(), Nz::OpenMode::WriteOnly);
file.Write(Nz::ShaderAst::SerializeShader(*shaderModule));
file.Write(Nz::ShaderAst::SerializeShader(shaderModule));
}
catch (const std::exception& e)
{