forked from mirror/openmw-tes3mp
Use const reference, thanks ace13
This commit is contained in:
parent
dca1674133
commit
1b77428c59
2 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ namespace SceneUtil
|
||||||
mStateSetCache.clear();
|
mStateSetCache.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LightManager::addLight(LightSource* lightSource, osg::Matrixf worldMat)
|
void LightManager::addLight(LightSource* lightSource, const osg::Matrixf& worldMat)
|
||||||
{
|
{
|
||||||
LightSourceTransform l;
|
LightSourceTransform l;
|
||||||
l.mLightSource = lightSource;
|
l.mLightSource = lightSource;
|
||||||
|
|
|
@ -77,7 +77,7 @@ namespace SceneUtil
|
||||||
void update();
|
void update();
|
||||||
|
|
||||||
// Called automatically by the LightSource's UpdateCallback
|
// Called automatically by the LightSource's UpdateCallback
|
||||||
void addLight(LightSource* lightSource, osg::Matrixf worldMat);
|
void addLight(LightSource* lightSource, const osg::Matrixf& worldMat);
|
||||||
|
|
||||||
struct LightSourceTransform
|
struct LightSourceTransform
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue