diff --git a/sRGB.zig b/sRGB.zig index 46b42d2de25f30cd08e185cacb0ba09bce765ee2..1aea074c1a309d5ced95d8e8376a744b93917257 100644 --- a/sRGB.zig +++ b/sRGB.zig @@ -75,6 +75,7 @@ pub fn format(x: Self, comptime fmt: []const u8, options: std.fmt.FormatOptions, pub fn to_linear_rgb(x: Self) color.LinearRgb { const lut = comptime blk: { + @setEvalBranchQuota(10_000); var res: [256]f32 = undefined; for (0..256) |i| { const c = @as(f32, @floatFromInt(i)) / 255.0;