From df61cdc5aae5a278f1875bccba5433ba501b6f50 Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Mon, 18 Nov 2024 19:57:38 +0300 Subject: [PATCH] Fix bug in UnpremultiplyOnLoad. --- StbImage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StbImage.cs b/StbImage.cs index e12e9df..2b970b2 100644 --- a/StbImage.cs +++ b/StbImage.cs @@ -149,7 +149,7 @@ namespace ReFuel.Stb /// According to the stb_image documentation, only iPhone PNG images /// can come with premultiplied alpha. /// - public static bool UnpremultiplyOnLoad { set => Stbi.set_unpremultiply_on_load(1); } + public static bool UnpremultiplyOnLoad { set => Stbi.set_unpremultiply_on_load(value ? 1 : 0); } /// /// Force a filter on PNG filter when saving.