[core] Bitmask operations for enums

This commit is contained in:
Mikhail Pozdnyakov
2019-09-10 16:18:54 +03:00
parent f9c15f708e
commit 796cc3a4d6
7 changed files with 40 additions and 65 deletions

View File

@@ -32,7 +32,7 @@ const std::string& RenderLayer::getID() const {
}
bool RenderLayer::hasRenderPass(RenderPass pass) const {
return bool(passes & pass);
return passes & pass;
}
bool RenderLayer::needsRendering() const {