- fix colormask alpha typo

This commit is contained in:
Magnus Norddahl 2019-03-04 01:54:57 +01:00
parent f04522c397
commit 0e43979c28

View file

@ -81,7 +81,7 @@ void VkRenderState::SetDepthRange(float min, float max)
void VkRenderState::SetColorMask(bool r, bool g, bool b, bool a)
{
int rr = r, gg = g, bb = b, aa = a;
mColorMask = (aa < 3) | (bb << 2) | (gg << 1) | rr;
mColorMask = (aa << 3) | (bb << 2) | (gg << 1) | rr;
mNeedApply = true;
}