mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 06:13:07 +01:00
D3D1x: Fixed blend factor logic. Issue #732.
This commit is contained in:
@@ -2705,11 +2705,11 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
m_blendStateCache.add(hash, bs);
|
||||
}
|
||||
|
||||
const uint64_t f0 = BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_FACTOR, BGFX_STATE_BLEND_FACTOR);
|
||||
const uint64_t f1 = BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_INV_FACTOR, BGFX_STATE_BLEND_INV_FACTOR);
|
||||
bool hasFactor = false
|
||||
|| f0 == (_state & f0)
|
||||
|| f1 == (_state & f1)
|
||||
bool hasFactor = 0
|
||||
|| 0 != (_state & BGFX_STATE_BLEND_FACTOR )
|
||||
|| 0 != (_state & BGFX_STATE_BLEND_INV_FACTOR )
|
||||
|| 0 != (_state & (BGFX_STATE_BLEND_FACTOR <<4) )
|
||||
|| 0 != (_state & (BGFX_STATE_BLEND_INV_FACTOR<<4) )
|
||||
;
|
||||
|
||||
float blendFactor[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
|
||||
|
||||
Reference in New Issue
Block a user