Force framebuffer update on first rendered item. Issue #628.

This commit is contained in:
Branimir Karadžić 2015-12-30 17:46:05 -08:00
parent b57dadc1b1
commit 5527c6a228
5 changed files with 5 additions and 5 deletions

View file

@ -4697,7 +4697,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
uint16_t programIdx = invalidHandle;
SortKey key;
uint16_t view = UINT16_MAX;
FrameBufferHandle fbh = BGFX_INVALID_HANDLE;
FrameBufferHandle fbh = { BGFX_CONFIG_MAX_FRAME_BUFFERS };
BlitKey blitKey;
blitKey.decode(_render->m_blitKeys[0]);

View file

@ -4540,7 +4540,7 @@ data.NumQualityLevels = 0;
ID3D12PipelineState* currentPso = NULL;
SortKey key;
uint16_t view = UINT16_MAX;
FrameBufferHandle fbh = BGFX_INVALID_HANDLE;
FrameBufferHandle fbh = { BGFX_CONFIG_MAX_FRAME_BUFFERS };
BlitKey blitKey;
blitKey.decode(_render->m_blitKeys[0]);

View file

@ -3495,7 +3495,7 @@ namespace bgfx { namespace d3d9
uint16_t programIdx = invalidHandle;
SortKey key;
uint16_t view = UINT16_MAX;
FrameBufferHandle fbh = BGFX_INVALID_HANDLE;
FrameBufferHandle fbh = { BGFX_CONFIG_MAX_FRAME_BUFFERS };
uint32_t blendFactor = 0;
BlitKey blitKey;

View file

@ -5325,7 +5325,7 @@ namespace bgfx { namespace gl
uint16_t programIdx = invalidHandle;
SortKey key;
uint16_t view = UINT16_MAX;
FrameBufferHandle fbh = BGFX_INVALID_HANDLE;
FrameBufferHandle fbh = { BGFX_CONFIG_MAX_FRAME_BUFFERS };
BlitKey blitKey;
blitKey.decode(_render->m_blitKeys[0]);

View file

@ -2236,7 +2236,7 @@ namespace bgfx { namespace mtl
uint16_t programIdx = invalidHandle;
SortKey key;
uint16_t view = UINT16_MAX;
FrameBufferHandle fbh = BGFX_INVALID_HANDLE;
FrameBufferHandle fbh = { BGFX_CONFIG_MAX_FRAME_BUFFERS };
//ASK: why should we use this? It changes topology, so possible renders a big mess, doesn't it?
//const uint64_t primType = _render->m_debug&BGFX_DEBUG_WIREFRAME ? BGFX_STATE_PT_LINES : 0;