mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 06:13:07 +01:00
discard flags
This commit is contained in:
committed by
Бранимир Караџић
parent
8ec25d96c7
commit
4b83e0f5bc
@@ -6482,12 +6482,12 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
|
||||
_render->sort();
|
||||
|
||||
RenderDraw currentState;
|
||||
currentState.clear();
|
||||
currentState.clear(BGFX_STATE_DISCARD_ALL);
|
||||
currentState.m_stateFlags = BGFX_STATE_NONE;
|
||||
currentState.m_stencil = packStencil(BGFX_STENCIL_NONE, BGFX_STENCIL_NONE);
|
||||
|
||||
RenderBind currentBind;
|
||||
currentBind.clear();
|
||||
currentBind.clear(BGFX_STATE_DISCARD_ALL);
|
||||
|
||||
static ViewState viewState;
|
||||
viewState.reset(_render);
|
||||
@@ -6769,9 +6769,9 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
|
||||
{
|
||||
if (resetState)
|
||||
{
|
||||
currentState.clear();
|
||||
currentState.clear(BGFX_STATE_DISCARD_ALL);
|
||||
currentState.m_scissor = !draw.m_scissor;
|
||||
currentBind.clear();
|
||||
currentBind.clear(BGFX_STATE_DISCARD_ALL);
|
||||
}
|
||||
|
||||
continue;
|
||||
@@ -6788,14 +6788,14 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
|
||||
|
||||
if (resetState)
|
||||
{
|
||||
currentState.clear();
|
||||
currentState.clear(BGFX_STATE_DISCARD_ALL);
|
||||
currentState.m_scissor = !draw.m_scissor;
|
||||
changedFlags = BGFX_STATE_MASK;
|
||||
changedStencil = packStencil(BGFX_STENCIL_MASK, BGFX_STENCIL_MASK);
|
||||
currentState.m_stateFlags = newFlags;
|
||||
currentState.m_stencil = newStencil;
|
||||
|
||||
currentBind.clear();
|
||||
currentBind.clear(BGFX_STATE_DISCARD_ALL);
|
||||
}
|
||||
|
||||
uint16_t scissor = draw.m_scissor;
|
||||
|
||||
Reference in New Issue
Block a user