Fixed duplicate sampler state.

This commit is contained in:
Branimir Karadžić 2016-07-05 16:57:50 -07:00
parent 959b9ce35b
commit 4e169a6f85

View File

@ -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) )