Renderer/GlslWriter: Fix exception

This commit is contained in:
Lynix 2017-01-06 02:06:29 +01:00
parent f72b3ed57d
commit 4a67f56e80
1 changed files with 3 additions and 2 deletions

View File

@ -243,10 +243,11 @@ namespace Nz
case ShaderAst::ExpressionType::Float4: case ShaderAst::ExpressionType::Float4:
Append(String::Format("vec4(%F, %F, %F, %F)", node.values.vec4.x, node.values.vec4.y, node.values.vec4.z, node.values.vec4.w)); Append(String::Format("vec4(%F, %F, %F, %F)", node.values.vec4.x, node.values.vec4.y, node.values.vec4.z, node.values.vec4.w));
break; break;
}
default:
throw std::runtime_error("Unhandled expression type"); throw std::runtime_error("Unhandled expression type");
} }
}
void GlslWriter::Write(const ShaderAst::ExpressionStatement& node) void GlslWriter::Write(const ShaderAst::ExpressionStatement& node)
{ {