From e764879f17feaf6e762084539f84818666f6871c Mon Sep 17 00:00:00 2001 From: sergeypdev Date: Mon, 19 Feb 2024 00:48:30 +0400 Subject: [PATCH] Fix incorrect double srgb conversion (stb already handles srgb->linear conversion) --- tools/asset_compiler.zig | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/asset_compiler.zig b/tools/asset_compiler.zig index 62afd18..127edcb 100644 --- a/tools/asset_compiler.zig +++ b/tools/asset_compiler.zig @@ -201,7 +201,6 @@ const MipLevel = struct { fn processTexture(allocator: std.mem.Allocator, input: [*:0]const u8, output: []const u8, hdr: bool) !void { _ = hdr; // autofix - const input_srgb = true; var width_int: c_int = undefined; var height_int: c_int = undefined; var comps: c_int = undefined; @@ -227,10 +226,6 @@ fn processTexture(allocator: std.mem.Allocator, input: [*:0]const u8, output: [] var settings: c.bc7_enc_settings = undefined; - if (input_srgb) { - convertSrgb(data); - } - if (comps == 3) { c.GetProfile_ultrafast(&settings); } else if (comps == 4) {