Vulkan: disable anisotropy for nearest-sampling modes
This commit is contained in:
parent
44c4bd2285
commit
4ac4d34c7a
|
@ -1070,7 +1070,6 @@ RB_StretchPic
|
|||
static const void *RB_StretchPic( const void *data ) {
|
||||
const stretchPicCommand_t *cmd;
|
||||
shader_t *shader;
|
||||
int numVerts, numIndexes;
|
||||
|
||||
cmd = (const stretchPicCommand_t *)data;
|
||||
|
||||
|
|
|
@ -2010,7 +2010,7 @@ static VkSampler vk_find_sampler( const Vk_Sampler_Def *def ) {
|
|||
desc.addressModeW = address_mode;
|
||||
desc.mipLodBias = 0.0f;
|
||||
|
||||
if ( def->noAnisotropy ) {
|
||||
if ( def->noAnisotropy || mipmap_mode == VK_SAMPLER_MIPMAP_MODE_NEAREST || mag_filter == VK_FILTER_NEAREST ) {
|
||||
desc.anisotropyEnable = VK_FALSE;
|
||||
desc.maxAnisotropy = 1.0f;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue