issue #2171: small fix in ccTypes.h

This commit is contained in:
James Chen 2013-12-17 15:39:35 +08:00
parent 8f5970ef90
commit 08edcca9be
1 changed files with 2 additions and 2 deletions

View File

@ -318,12 +318,12 @@ struct BlendFunc
//! Enables Additive blending. Uses {GL_SRC_ALPHA, GL_ONE}
const static BlendFunc ADDITIVE;
bool const operator==(const BlendFunc &a)
bool operator==(const BlendFunc &a) const
{
return src == a.src && dst == a.dst;
}
bool const operator<(const BlendFunc &a)
bool operator<(const BlendFunc &a) const
{
return src < a.src || (src < a.src && dst < a.dst);
}