mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fixed duplicate sampler state.
This commit is contained in:
@@ -2893,6 +2893,12 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
const uint32_t index = (_flags & BGFX_TEXTURE_BORDER_COLOR_MASK) >> BGFX_TEXTURE_BORDER_COLOR_SHIFT;
|
||||
_flags &= BGFX_TEXTURE_SAMPLER_BITS_MASK;
|
||||
|
||||
// Force both min+max anisotropic, can't be set individually.
|
||||
_flags |= 0 != (_flags & (BGFX_TEXTURE_MIN_ANISOTROPIC|BGFX_TEXTURE_MAG_ANISOTROPIC) )
|
||||
? BGFX_TEXTURE_MIN_ANISOTROPIC|BGFX_TEXTURE_MAG_ANISOTROPIC
|
||||
: 0
|
||||
;
|
||||
|
||||
uint32_t hash;
|
||||
ID3D11SamplerState* sampler;
|
||||
if (!needBorderColor(_flags) )
|
||||
|
||||
Reference in New Issue
Block a user