Fix incorrect double srgb conversion (stb already handles srgb->linear conversion)

This commit is contained in:
sergeypdev 2024-02-19 00:48:30 +04:00
parent d3370cc559
commit e764879f17

View File

@ -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) {