Fix new code on non-windows editor platforms

This commit is contained in:
Wojtek Figat
2025-01-14 22:45:03 +01:00
parent 59061c01d3
commit be8686bbb2

View File

@@ -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);
}
}
}