if(!var.interpolation.empty() || !var.sampling.empty())
{
- if(var.interface!="in" && stage->type==Stage::VERTEX)
+ if(var.interface=="in" && stage->type==Stage::VERTEX)
error(var, "Interpolation qualifier not allowed on vertex input");
- else if(var.interface!="out" && stage->type==Stage::FRAGMENT)
+ else if(var.interface=="out" && stage->type==Stage::FRAGMENT)
error(var, "Interpolation qualifier not allowed on fragment output");
else if((var.interface!="in" && var.interface!="out") || (scope==FUNCTION_PARAM || scope==FUNCTION))
error(var, "Interpolation qualifier not allowed on non-interpolated variable");