mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed compile error.
This commit is contained in:
parent
bb96d76c0a
commit
904f52ab91
2 changed files with 7 additions and 7 deletions
|
@ -1377,7 +1377,7 @@ namespace bgfx
|
|||
if (NULL != m_currentColor
|
||||
&& BGFX_CLEAR_COLOR & _clear.m_flags)
|
||||
{
|
||||
if (BGFX_CLEAR_COLOR_USE_PALETTE_BIT & _clear.m_flags)
|
||||
if (BGFX_CLEAR_COLOR_USE_PALETTE & _clear.m_flags)
|
||||
{
|
||||
uint8_t index = _clear.m_index[0];
|
||||
if (UINT8_MAX != index)
|
||||
|
@ -2066,7 +2066,7 @@ namespace bgfx
|
|||
deviceCtx->PSSetShader(fsh->m_pixelShader, NULL, 0);
|
||||
deviceCtx->PSSetConstantBuffers(0, 1, &fsh->m_buffer);
|
||||
|
||||
if (BGFX_CLEAR_COLOR_USE_PALETTE_BIT & _clear.m_flags)
|
||||
if (BGFX_CLEAR_COLOR_USE_PALETTE & _clear.m_flags)
|
||||
{
|
||||
float mrtClear[BGFX_CONFIG_MAX_FRAME_BUFFER_ATTACHMENTS][4];
|
||||
for (uint32_t ii = 0; ii < numMrt; ++ii)
|
||||
|
@ -2901,7 +2901,7 @@ namespace bgfx
|
|||
|
||||
if (BGFX_CLEAR_COLOR & _clear.m_flags)
|
||||
{
|
||||
if (BGFX_CLEAR_COLOR_USE_PALETTE_BIT & _clear.m_flags)
|
||||
if (BGFX_CLEAR_COLOR_USE_PALETTE & _clear.m_flags)
|
||||
{
|
||||
for (uint32_t ii = 0, num = m_num; ii < num; ++ii)
|
||||
{
|
||||
|
@ -3097,7 +3097,7 @@ namespace bgfx
|
|||
deviceCtx->RSSetViewports(1, &vp);
|
||||
Clear& clear = _render->m_clear[view];
|
||||
|
||||
if (BGFX_CLEAR_NONE != clear.m_flags)
|
||||
if (BGFX_CLEAR_NONE != (clear.m_flags & BGFX_CLEAR_MASK) )
|
||||
{
|
||||
clearQuad(_clearQuad, viewState.m_rect, clear, _render->m_clearColor);
|
||||
prim = s_primInfo[BX_COUNTOF(s_primName)]; // Force primitive type update after clear quad.
|
||||
|
|
|
@ -1469,7 +1469,7 @@ namespace bgfx
|
|||
|
||||
if (BGFX_CLEAR_COLOR & _clear.m_flags)
|
||||
{
|
||||
if (BGFX_CLEAR_COLOR_USE_PALETTE_BIT & _clear.m_flags)
|
||||
if (BGFX_CLEAR_COLOR_USE_PALETTE & _clear.m_flags)
|
||||
{
|
||||
uint8_t index = (uint8_t)bx::uint32_min(BGFX_CONFIG_MAX_CLEAR_COLOR_PALETTE-1, _clear.m_index[0]);
|
||||
const float* rgba = _palette[index];
|
||||
|
@ -1598,7 +1598,7 @@ namespace bgfx
|
|||
device->SetVertexShader(program.m_vsh->m_vertexShader);
|
||||
device->SetPixelShader(program.m_fsh->m_pixelShader);
|
||||
|
||||
if (BGFX_CLEAR_COLOR_USE_PALETTE_BIT & _clear.m_flags)
|
||||
if (BGFX_CLEAR_COLOR_USE_PALETTE & _clear.m_flags)
|
||||
{
|
||||
float mrtClear[BGFX_CONFIG_MAX_FRAME_BUFFER_ATTACHMENTS][4];
|
||||
for (uint32_t ii = 0; ii < numMrt; ++ii)
|
||||
|
@ -2905,7 +2905,7 @@ namespace bgfx
|
|||
|
||||
Clear& clear = _render->m_clear[view];
|
||||
|
||||
if (BGFX_CLEAR_NONE != clear.m_flags)
|
||||
if (BGFX_CLEAR_NONE != (clear.m_flags & BGFX_CLEAR_MASK) )
|
||||
{
|
||||
clearQuad(_clearQuad, viewState.m_rect, clear, _render->m_clearColor);
|
||||
prim = s_primInfo[BX_COUNTOF(s_primName)]; // Force primitive type update after clear quad.
|
||||
|
|
Loading…
Reference in a new issue