Added missing transparency sort order for blend factor mode.

This commit is contained in:
bkaradzic 2013-03-30 08:47:40 -07:00
parent 2528a16d4d
commit bcd1dee746

View file

@ -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;
}