shader: Bug fix: A wrong usage of a pointer

This commit is contained in:
Hajime Hoshi 2020-12-20 13:32:08 +09:00
parent de14a44c01
commit d3fbf377ef

View File

@ -427,7 +427,7 @@ func (cs *compileState) parseStmt(block *block, fname string, stmt ast.Stmt, inP
}
if !t.Equal(&outParams[i+j].typ) {
cs.addError(stmt.Pos(), fmt.Sprintf("cannot use type %s as type %s in return argument", &t, &outParams[i].typ))
cs.addError(stmt.Pos(), fmt.Sprintf("cannot use type %s as type %s in return argument", t.String(), &outParams[i].typ))
return nil, false
}