mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 22:03:12 +01:00
Added missing transparency sort order for blend factor mode.
This commit is contained in:
@@ -989,7 +989,8 @@ namespace bgfx
|
||||
void setState(uint64_t _state, uint32_t _rgba)
|
||||
{
|
||||
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_rgba = _rgba;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user