diff --git a/cocos/renderer/backend/Types.cpp b/cocos/renderer/backend/Types.cpp index 61a375f466..ae8e08650a 100644 --- a/cocos/renderer/backend/Types.cpp +++ b/cocos/renderer/backend/Types.cpp @@ -10,7 +10,7 @@ bool UniformLocation::operator==(const UniformLocation &other) const } std::size_t UniformLocation::operator()(const UniformLocation &uniform) const { - return (((size_t) shaderStage) & 0xFFFFFFF0 )|((size_t)(location << 4)); + return (((size_t) shaderStage) & 0xF)|((size_t)(location << 4)); } CC_BACKEND_END