skeeto/scratch

Inverted srgb flag in parser/qoi.c

Closed this issue · 1 comments

According to the spec, 0 means srgb and 1 means linear. But in the code, it seems to be doing the opposite:

    p[13] = 0;  // srgb
    // ...
    case 's': p[13] = 1; break;