Skip to content

Commit 3f818cb

Browse files
HappyLi3csyonghe
andauthored
A small mistake. (#5819)
The 'samplerInfo.magFilter' should match the 'desc.magFilter'. Co-authored-by: Yong He <yonghe@outlook.com>
1 parent f0b9914 commit 3f818cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/gfx/vulkan/vk-device.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2084,8 +2084,8 @@ Result DeviceImpl::createSamplerState(ISamplerState::Desc const& desc, ISamplerS
20842084
{
20852085
VkSamplerCreateInfo samplerInfo = {VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO};
20862086

2087-
samplerInfo.magFilter = VulkanUtil::translateFilterMode(desc.minFilter);
2088-
samplerInfo.minFilter = VulkanUtil::translateFilterMode(desc.magFilter);
2087+
samplerInfo.magFilter = VulkanUtil::translateFilterMode(desc.magFilter);
2088+
samplerInfo.minFilter = VulkanUtil::translateFilterMode(desc.minFilter);
20892089

20902090
samplerInfo.addressModeU = VulkanUtil::translateAddressingMode(desc.addressU);
20912091
samplerInfo.addressModeV = VulkanUtil::translateAddressingMode(desc.addressV);

0 commit comments

Comments
 (0)