diff --git a/src/Nazara/Graphics/Formats/TextureLoader.cpp b/src/Nazara/Graphics/Formats/TextureLoader.cpp index 0cf6538fd..fc18979ec 100644 --- a/src/Nazara/Graphics/Formats/TextureLoader.cpp +++ b/src/Nazara/Graphics/Formats/TextureLoader.cpp @@ -25,7 +25,8 @@ namespace Nz { TextureParams texParams; texParams.renderDevice = Graphics::Instance()->GetRenderDevice(); - // TODO: Set format as sRGB + if (parameters.custom.GetBooleanParameter("sRGB").GetValueOr(false)) + texParams.loadFormat = PixelFormat::RGBA8_SRGB; std::shared_ptr image = Image::LoadFromStream(stream, texParams); if (!image)