From 44896f1d5154374a43a82a93801ee1ba07f62a64 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Mon, 25 Oct 2021 17:46:58 +0200 Subject: [PATCH] convert_png_to_argb8: Set color type & bit depth --- minetest/png.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/minetest/png.lua b/minetest/png.lua index 5f43fa3..dae36bf 100644 --- a/minetest/png.lua +++ b/minetest/png.lua @@ -375,6 +375,8 @@ end png.data[index] = a * 0x1000000 + r * 0x10000 + g * 0x100 + b end end + png.color_type = colortypes[6] + png.bit_depth = 8 png.alpha_data = nil end