Skip to content

Commit

Permalink
shaders/colorspace: fix shader compile error
Browse files Browse the repository at this point in the history
ERROR: 0:55: Initializer not allowed
ERROR: 0:57: Use of undeclared identifier 'ct_scale'
ERROR: 0:66: Use of undeclared identifier 'ct_scale'
  • Loading branch information
quink-black committed Apr 25, 2022
1 parent f85c3c0 commit 1f8f105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shaders/colorspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ static void tone_map(pl_shader sh,
}

ident_t ct = SH_FLOAT(params->tone_mapping_crosstalk);
GLSL("const float ct_scale = 1.0 - 3.0 * %s; \n"
GLSL("float ct_scale = 1.0 - 3.0 * %s; \n"
"float ct = %s * (color.r + color.g + color.b); \n"
"color.rgb = ct_scale * color.rgb + vec3(ct); \n",
ct, ct);
Expand Down

0 comments on commit 1f8f105

Please sign in to comment.