mirror of https://github.com/axmolengine/axmol.git
issue #2171: small fix in ccTypes.h
This commit is contained in:
parent
8f5970ef90
commit
08edcca9be
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue