D3D12: Fixed alpharef.

This commit is contained in:
Branimir Karadžić 2015-08-24 23:11:49 -07:00
parent 9ded9412a8
commit d7368442ff
1 changed files with 6 additions and 0 deletions

View File

@ -4577,6 +4577,12 @@ data.NumQualityLevels = 0;
}
}
if (BGFX_STATE_ALPHA_REF_MASK & changedFlags)
{
uint32_t ref = (newFlags&BGFX_STATE_ALPHA_REF_MASK)>>BGFX_STATE_ALPHA_REF_SHIFT;
viewState.m_alphaRef = ref/255.0f;
}
viewState.setPredefined<4>(this, view, 0, program, _render, draw);
constantsChanged |= program.m_numPredefined > 0;