Skip to content

Commit

Permalink
UPBGE: Fix UniformInfo < operator.
Browse files Browse the repository at this point in the history
operator < for UniformInfo wasn't const and failed compilation
on MacOS.

Fix reported by @lordloki.

Fix issue #894.
  • Loading branch information
panzergame authored and youle31 committed May 26, 2019
1 parent 7013837 commit 30ddd0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gameengine/Rasterizer/RAS_Shader.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class RAS_Shader
*/
UniformInfo(const std::string& name, GPUShader *shader);

inline bool operator< (const UniformInfo& other)
inline bool operator< (const UniformInfo& other) const
{
return (nameHash < other.nameHash);
}
Expand Down

0 comments on commit 30ddd0c

Please sign in to comment.