mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
revert a bit causing crashes on certain 'nix boxes.
This commit is contained in:
parent
21c17d0ed1
commit
8ce207561e
|
|
@ -455,12 +455,12 @@ Var* ShaderFeatureGLSL::addOutVpos( MultiLine *meta,
|
|||
outVpos = connectComp->getElement( RT_TEXCOORD );
|
||||
outVpos->setName( "outVpos" );
|
||||
outVpos->setStructName( "OUT" );
|
||||
outVpos->setType( "vec3" );
|
||||
outVpos->setType( "vec4" );
|
||||
|
||||
Var *outPosition = (Var*) LangElement::find( "gl_Position" );
|
||||
AssertFatal( outPosition, "ShaderFeatureGLSL::addOutVpos - Didn't find the output position." );
|
||||
|
||||
meta->addStatement( new GenOp( " @ = @.xyz;\r\n", outVpos, outPosition ) );
|
||||
meta->addStatement( new GenOp( " @ = @;\r\n", outVpos, outPosition ) );
|
||||
}
|
||||
|
||||
return outVpos;
|
||||
|
|
|
|||
|
|
@ -453,12 +453,12 @@ Var* ShaderFeatureHLSL::addOutVpos( MultiLine *meta,
|
|||
outVpos = connectComp->getElement( RT_TEXCOORD );
|
||||
outVpos->setName( "outVpos" );
|
||||
outVpos->setStructName( "OUT" );
|
||||
outVpos->setType( "float3" );
|
||||
outVpos->setType( "float4" );
|
||||
|
||||
Var *outPosition = (Var*) LangElement::find( "hpos" );
|
||||
AssertFatal( outPosition, "ShaderFeatureHLSL::addOutVpos - Didn't find the output position." );
|
||||
|
||||
meta->addStatement( new GenOp( " @ = @.xyz;\r\n", outVpos, outPosition ) );
|
||||
meta->addStatement( new GenOp( " @ = @;\r\n", outVpos, outPosition ) );
|
||||
}
|
||||
|
||||
return outVpos;
|
||||
|
|
|
|||
Loading…
Reference in a new issue