mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
D3D12: Fixed alpharef.
This commit is contained in:
parent
9ded9412a8
commit
d7368442ff
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue