Some fixes
This commit is contained in:
@@ -562,7 +562,7 @@ namespace Nz
|
||||
UInt32 resultId = m_writer.AllocateResultId();
|
||||
m_currentBlock->Append(*castOp, m_writer.GetTypeId(targetType), resultId, fromId);
|
||||
|
||||
throw std::runtime_error("toudou");
|
||||
PushResultId(resultId);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -115,12 +115,12 @@ namespace Nz
|
||||
}
|
||||
}
|
||||
|
||||
void Visit(ShaderAst::ConditionalExpression& node) override
|
||||
void Visit(ShaderAst::ConditionalExpression& /*node*/) override
|
||||
{
|
||||
throw std::runtime_error("unexpected conditional expression, did you forget to sanitize the shader?");
|
||||
}
|
||||
|
||||
void Visit(ShaderAst::ConditionalStatement& node) override
|
||||
void Visit(ShaderAst::ConditionalStatement& /*node*/) override
|
||||
{
|
||||
throw std::runtime_error("unexpected conditional expression, did you forget to sanitize the shader?");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user