Passed BlendMode objects by const-reference

This commit is contained in:
Jan Haller 2014-03-16 11:58:45 +01:00
parent 330db58bc1
commit ec494babbe
2 changed files with 4 additions and 4 deletions

View file

@ -66,7 +66,7 @@ public :
/// \param theBlendMode Blend mode to use
///
////////////////////////////////////////////////////////////
RenderStates(BlendMode theBlendMode);
RenderStates(const BlendMode& theBlendMode);
////////////////////////////////////////////////////////////
/// \brief Construct a default set of render states with a custom transform
@ -101,7 +101,7 @@ public :
/// \param theShader Shader to use
///
////////////////////////////////////////////////////////////
RenderStates(BlendMode theBlendMode, const Transform& theTransform,
RenderStates(const BlendMode& theBlendMode, const Transform& theTransform,
const Texture* theTexture, const Shader* theShader);
////////////////////////////////////////////////////////////