Fixed SHADER::AddParameter() function.
This commit is contained in:
parent
b143ce6b0f
commit
2a276550eb
|
@ -130,7 +130,7 @@ int SHADER::AddParameter( const std::string& aParameterName )
|
||||||
if( location != -1 )
|
if( location != -1 )
|
||||||
parameterLocation.push_back( location );
|
parameterLocation.push_back( location );
|
||||||
|
|
||||||
return location;
|
return parameterLocation.size() - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue