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