Fix GLSL out fragment shader color.

This commit is contained in:
LuisAntonRebollo 2014-11-30 05:32:40 +01:00
parent 80482753e1
commit 4409a12af6
9 changed files with 59 additions and 17 deletions

View file

@ -78,9 +78,9 @@ LangElement *ConditionerFeature::assignOutput( Var *unconditionedOutput, ShaderF
{
color->setName( getOutputTargetVarName(outputTarget) );
color->setType( "vec4" );
DecOp* colDecl = new DecOp(color);
color->setStructName( "OUT" );
assign = new GenOp( "@ = vec4(@)", colDecl, conditionedOutput );
assign = new GenOp( "@ = vec4(@)", color, conditionedOutput );
}
else
{