mirror of https://github.com/axmolengine/axmol.git
Update cocos/renderer/backend/Types.cpp
This commit is contained in:
parent
c8324db21e
commit
4b5121c70b
|
@ -10,7 +10,7 @@ bool UniformLocation::operator==(const UniformLocation &other) const
|
||||||
}
|
}
|
||||||
|
|
||||||
std::size_t UniformLocation::operator()(const UniformLocation &uniform) const {
|
std::size_t UniformLocation::operator()(const UniformLocation &uniform) const {
|
||||||
return (size_t)(shaderStage) || (size_t)(location & 0xFFFFFFF0);
|
return (size_t)(shaderStage) || (size_t)((location << 4)& 0xFFFFFFF0);
|
||||||
}
|
}
|
||||||
|
|
||||||
CC_BACKEND_END
|
CC_BACKEND_END
|
||||||
|
|
Loading…
Reference in New Issue