From 2f64e9fada4559227313e87d0811a531ab734f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Wed, 21 Dec 2022 19:05:40 +0100 Subject: [PATCH] fix for imgui samples: incorrect sampler configuration --- Example_ImGui/Example_ImGui.cpp | 2 +- Example_ImGui_Docking/Example_ImGui_Docking.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Example_ImGui/Example_ImGui.cpp b/Example_ImGui/Example_ImGui.cpp index e684d5fff..8f9ed00e9 100644 --- a/Example_ImGui/Example_ImGui.cpp +++ b/Example_ImGui/Example_ImGui.cpp @@ -64,7 +64,7 @@ bool ImGui_Impl_CreateDeviceObjects() samplerDesc.address_u = TextureAddressMode::WRAP; samplerDesc.address_v = TextureAddressMode::WRAP; samplerDesc.address_w = TextureAddressMode::WRAP; - samplerDesc.filter = Filter::MAXIMUM_MIN_MAG_MIP_LINEAR; + samplerDesc.filter = Filter::MIN_MAG_MIP_LINEAR; wi::graphics::GetDevice()->CreateSampler(&samplerDesc, &sampler); // Store our identifier diff --git a/Example_ImGui_Docking/Example_ImGui_Docking.cpp b/Example_ImGui_Docking/Example_ImGui_Docking.cpp index c7f559de5..146655568 100644 --- a/Example_ImGui_Docking/Example_ImGui_Docking.cpp +++ b/Example_ImGui_Docking/Example_ImGui_Docking.cpp @@ -96,7 +96,7 @@ bool ImGui_Impl_CreateDeviceObjects() samplerDesc.address_u = TextureAddressMode::WRAP; samplerDesc.address_v = TextureAddressMode::WRAP; samplerDesc.address_w = TextureAddressMode::WRAP; - samplerDesc.filter = Filter::MAXIMUM_MIN_MAG_MIP_LINEAR; + samplerDesc.filter = Filter::MIN_MAG_MIP_LINEAR; wi::graphics::GetDevice()->CreateSampler(&samplerDesc, &sampler); // Store our identifier