Cleanup.
This commit is contained in:
parent
45c0b29470
commit
517942f8e1
11
src/bgfx_p.h
11
src/bgfx_p.h
@ -404,9 +404,9 @@ namespace bgfx
|
||||
|
||||
void clear()
|
||||
{
|
||||
m_x =
|
||||
m_y =
|
||||
m_width =
|
||||
m_x = 0;
|
||||
m_y = 0;
|
||||
m_width = 0;
|
||||
m_height = 0;
|
||||
}
|
||||
|
||||
@ -1161,15 +1161,18 @@ namespace bgfx
|
||||
bool decode(uint64_t _key, ViewId _viewRemap[BGFX_CONFIG_MAX_VIEWS])
|
||||
{
|
||||
m_view = _viewRemap[(_key & kSortKeyViewMask) >> kSortKeyViewBitShift];
|
||||
|
||||
if (_key & kSortKeyDrawBit)
|
||||
{
|
||||
uint64_t type = _key & kSortKeyDrawTypeMask;
|
||||
|
||||
if (type == kSortKeyDrawTypeDepth)
|
||||
{
|
||||
m_program.idx = uint16_t( (_key & kSortKeyDraw1ProgramMask) >> kSortKeyDraw1ProgramShift);
|
||||
return false;
|
||||
}
|
||||
else if (type == kSortKeyDrawTypeSequence)
|
||||
|
||||
if (type == kSortKeyDrawTypeSequence)
|
||||
{
|
||||
m_program.idx = uint16_t( (_key & kSortKeyDraw2ProgramMask) >> kSortKeyDraw2ProgramShift);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user