Browse Source

Examples: Vulkan: Fixed an extra validation (tested on Windows with VulkanSDK 1.0.46.0) (#1042)

omar 8 years ago
parent
commit
b0db625cab
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/vulkan_example/imgui_impl_glfw_vulkan.cpp

+ 1 - 0
examples/vulkan_example/imgui_impl_glfw_vulkan.cpp

@@ -541,6 +541,7 @@ bool ImGui_ImplGlfwVulkan_CreateDeviceObjects()
         info.addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT;
         info.minLod = -1000;
         info.maxLod = 1000;
+        info.maxAnisotropy = 1.0f;
         err = vkCreateSampler(g_Device, &info, g_Allocator, &g_FontSampler);
         ImGui_ImplGlfwVulkan_VkResult(err);
     }