1
0
Fork 0

Vulkan: disable anisotropy for nearest-sampling modes

This commit is contained in:
Eugene 2022-01-30 20:51:59 +02:00
parent 44c4bd2285
commit 4ac4d34c7a
2 changed files with 1 additions and 2 deletions

View File

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

View File

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