Skip to content

Commit

Permalink
vulkan: possible fix for validation error when sampling an int texture
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Sep 27, 2024
1 parent d185eb8 commit ef252b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/graphics/vulkan/Vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,9 @@ VkSamplerMipmapMode Vulkan::getMipMapMode(SamplerState::MipmapFilterMode mode)
{
switch (mode)
{
case SamplerState::MIPMAP_FILTER_NONE:
case SamplerState::MIPMAP_FILTER_NEAREST:
return VK_SAMPLER_MIPMAP_MODE_NEAREST;
case SamplerState::MIPMAP_FILTER_NONE:
case SamplerState::MIPMAP_FILTER_LINEAR:
default:
return VK_SAMPLER_MIPMAP_MODE_LINEAR;
Expand Down

0 comments on commit ef252b7

Please sign in to comment.