diff --git a/engine/gfx/vulkan/src/gfx_vulkan.cpp b/engine/gfx/vulkan/src/gfx_vulkan.cpp index cd1cb52..5487b40 100755 --- a/engine/gfx/vulkan/src/gfx_vulkan.cpp +++ b/engine/gfx/vulkan/src/gfx_vulkan.cpp @@ -508,6 +508,7 @@ GFXTexture* GFXVulkan::create_texture(const GFXTextureCreateInfo& info) { samplerInfo.borderColor = toBorderColor(info.border_color); samplerInfo.compareOp = toCompareFunc(info.compare_function); samplerInfo.mipmapMode = VK_SAMPLER_MIPMAP_MODE_LINEAR; + samplerInfo.maxLod = static_cast(info.mip_count); vkCreateSampler(device, &samplerInfo, nullptr, &texture->sampler);