From be8686bbb2740625324cd596dd37c2894055588c Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 14 Jan 2025 22:45:03 +0100 Subject: [PATCH] Fix new code on non-windows editor platforms --- Source/Engine/Tools/TextureTool/TextureTool.stb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Tools/TextureTool/TextureTool.stb.cpp b/Source/Engine/Tools/TextureTool/TextureTool.stb.cpp index 2caad5b59..a527badf2 100644 --- a/Source/Engine/Tools/TextureTool/TextureTool.stb.cpp +++ b/Source/Engine/Tools/TextureTool/TextureTool.stb.cpp @@ -691,7 +691,7 @@ bool TextureTool::ConvertStb(TextureData& dst, const TextureData& src, const Pix { for (int32 x = 0; x < 4; x++) { - Color color = TextureTool::SamplePoint(sampler, xBlock * 4 + x, yBlock * 4 + y, srcMip.Data.Get(), srcMip.RowPitch); + Color color = sampler->SamplePoint(srcMip.Data.Get(), xBlock * 4 + x, yBlock * 4 + y, srcMip.RowPitch); if (isDstSRGB) color = Color::LinearToSrgb(color); srcBlock[y * 4 + x] = Color32(color); @@ -786,7 +786,7 @@ bool TextureTool::ConvertStb(TextureData& dst, const TextureData& src, const Pix Color color = sampler->SamplePoint(srcMip.Data.Get(), x, y, srcMip.RowPitch); // Store destination texture - sampler->Store(dstMip.Data.Get(), x, y, dstMip.RowPitch, color); + dstSampler->Store(dstMip.Data.Get(), x, y, dstMip.RowPitch, color); } } }