mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 14:36:40 -04:00
Use const reference, thanks ace13
This commit is contained in:
parent
dca1674133
commit
1b77428c59
@ -164,7 +164,7 @@ namespace SceneUtil
|
||||
mStateSetCache.clear();
|
||||
}
|
||||
|
||||
void LightManager::addLight(LightSource* lightSource, osg::Matrixf worldMat)
|
||||
void LightManager::addLight(LightSource* lightSource, const osg::Matrixf& worldMat)
|
||||
{
|
||||
LightSourceTransform l;
|
||||
l.mLightSource = lightSource;
|
||||
|
@ -77,7 +77,7 @@ namespace SceneUtil
|
||||
void update();
|
||||
|
||||
// Called automatically by the LightSource's UpdateCallback
|
||||
void addLight(LightSource* lightSource, osg::Matrixf worldMat);
|
||||
void addLight(LightSource* lightSource, const osg::Matrixf& worldMat);
|
||||
|
||||
struct LightSourceTransform
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user