Update cocos/renderer/backend/Types.cpp

This commit is contained in:
Arnold 2019-03-15 17:28:57 +08:00 committed by GitHub
parent e46e286a18
commit 5146fa3c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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