diff --git a/src/Nazara/Graphics/MaterialInstance.cpp b/src/Nazara/Graphics/MaterialInstance.cpp index 502fbda65..83b7bc994 100644 --- a/src/Nazara/Graphics/MaterialInstance.cpp +++ b/src/Nazara/Graphics/MaterialInstance.cpp @@ -386,7 +386,10 @@ namespace Nz { if (auto value = materialData.GetStringViewParameter(paramKey)) { - matInstance->SetTextureProperty(matKey, Texture::LoadFromFile(Utf8Path(value.GetValue()))); + TextureParams texParams; + texParams.renderDevice = Graphics::Instance()->GetRenderDevice(); + + matInstance->SetTextureProperty(matKey, Texture::LoadFromFile(Utf8Path(value.GetValue()), texParams)); } Nz::TextureSamplerInfo samplerInfo;