This commit is contained in:
Бранимир Караџић 2021-04-02 20:17:42 -07:00
parent 45c0b29470
commit 517942f8e1

View File

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