d3d12: Do not set mask if not requested

This commit is contained in:
vlj 2015-06-06 17:58:00 +02:00 committed by Vincent Lejeune
parent bdeb08e045
commit 27e56b6199

View File

@ -847,7 +847,10 @@ bool D3D12GSRender::LoadProgram()
break;
}
prop.SampleMask = m_color_mask_r | (m_color_mask_g << 1) | (m_color_mask_b << 2) | (m_color_mask_a << 3);
if (m_set_color_mask)
prop.SampleMask = m_color_mask_r | (m_color_mask_g << 1) | (m_color_mask_b << 2) | (m_color_mask_a << 3);
else
prop.SampleMask = UINT_MAX;
prop.IASet = m_IASet;