diff --git a/src/Aardvark.Base.Tensors.CSharp/PixImage/PixImage.cs b/src/Aardvark.Base.Tensors.CSharp/PixImage/PixImage.cs index 513491f3..16e8d2c9 100644 --- a/src/Aardvark.Base.Tensors.CSharp/PixImage/PixImage.cs +++ b/src/Aardvark.Base.Tensors.CSharp/PixImage/PixImage.cs @@ -275,7 +275,7 @@ public static void SetLoader(IPixLoader loader, int priority) /// /// Adds a PixImage loader. /// Assigns a priority that is greater than the highest priority among existing loaders, resulting in a LIFO order. - /// If the loader already exists, the priority is not modified. + /// If the loader already exists, the priority is modified. /// /// The loader to add. public static void AddLoader(IPixLoader loader) diff --git a/src/Tests/Aardvark.Base.Windows.Tests/PixLoaderTests.fs b/src/Tests/Aardvark.Base.Windows.Tests/PixLoaderTests.fs index 4842b97a..0e641a66 100644 --- a/src/Tests/Aardvark.Base.Windows.Tests/PixLoaderTests.fs +++ b/src/Tests/Aardvark.Base.Windows.Tests/PixLoaderTests.fs @@ -285,6 +285,10 @@ module PixLoaderTests = priorities.Count |> should equal count priorities.Get(PixImageDevil.Loader) |> should equal 1337 + PixImage.AddLoader(PixImageDevil.Loader) + let priorities = PixImage.GetLoadersWithPriority() + priorities.Get(PixImageDevil.Loader) |> should equal 1338 + PixImage.RemoveLoader(PixImageSharp.Loader) PixImage.RemoveLoader(PixImageDevil.Loader) PixImage.GetLoaders() |> Seq.length |> should equal (count - 2)