mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 05:43:12 +01:00
Moved internal view state into single struct.
This commit is contained in:
@@ -900,7 +900,7 @@ namespace bgfx
|
||||
m_key.m_view = _id;
|
||||
|
||||
SortKey::Enum type = SortKey::SortProgram;
|
||||
switch (s_ctx->m_viewMode[_id])
|
||||
switch (s_ctx->m_view[_id].m_mode)
|
||||
{
|
||||
case ViewMode::Sequential: m_key.m_seq = s_ctx->getSeqIncr(_id); type = SortKey::SortSequence; break;
|
||||
case ViewMode::DepthAscending: m_key.m_depth = (uint32_t)_depth; type = SortKey::SortDepth; break;
|
||||
@@ -1698,13 +1698,8 @@ namespace bgfx
|
||||
m_submit->m_perfStats.numViews = 0;
|
||||
|
||||
bx::memCopy(m_submit->m_viewRemap, m_viewRemap, sizeof(m_viewRemap) );
|
||||
bx::memCopy(m_submit->m_fb, m_fb, sizeof(m_fb) );
|
||||
bx::memCopy(m_submit->m_clear, m_clear, sizeof(m_clear) );
|
||||
bx::memCopy(m_submit->m_rect, m_rect, sizeof(m_rect) );
|
||||
bx::memCopy(m_submit->m_scissor, m_scissor, sizeof(m_scissor) );
|
||||
bx::memCopy(m_submit->m_view, m_view, sizeof(m_view) );
|
||||
bx::memCopy(m_submit->m_proj, m_proj, sizeof(m_proj) );
|
||||
bx::memCopy(m_submit->m_viewFlags, m_viewFlags, sizeof(m_viewFlags) );
|
||||
|
||||
if (m_colorPaletteDirty > 0)
|
||||
{
|
||||
--m_colorPaletteDirty;
|
||||
|
||||
Reference in New Issue
Block a user