Added missing transparency sort order for blend factor mode.
This commit is contained in:
parent
2528a16d4d
commit
bcd1dee746
1 changed files with 2 additions and 1 deletions
|
@ -989,7 +989,8 @@ namespace bgfx
|
||||||
void setState(uint64_t _state, uint32_t _rgba)
|
void setState(uint64_t _state, uint32_t _rgba)
|
||||||
{
|
{
|
||||||
uint8_t blend = ( (_state&BGFX_STATE_BLEND_MASK)>>BGFX_STATE_BLEND_SHIFT)&0xff;
|
uint8_t blend = ( (_state&BGFX_STATE_BLEND_MASK)>>BGFX_STATE_BLEND_SHIFT)&0xff;
|
||||||
m_key.m_trans = "\x0\x1\x1\x2\x2\x1\x2\x1\x2\x1\x1\x1\x1\x1\x1\x1\x1"[( (blend)&0xf) + (!!blend)];
|
// transparency sort order table
|
||||||
|
m_key.m_trans = "\x0\x1\x1\x2\x2\x1\x2\x1\x2\x1\x1\x1\x1\x1\x1\x1\x1\x1\x1"[( (blend)&0xf) + (!!blend)];
|
||||||
m_state.m_flags = _state;
|
m_state.m_flags = _state;
|
||||||
m_state.m_rgba = _rgba;
|
m_state.m_rgba = _rgba;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue