mirror of https://github.com/bkaradzic/bgfx
D3D12: Fixed alpharef.
This commit is contained in:
parent
9ded9412a8
commit
d7368442ff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue