From dd43635e78e77eec3d153a0976551612056cf2be Mon Sep 17 00:00:00 2001 From: Norihiro Kamae Date: Wed, 11 May 2022 23:15:21 +0900 Subject: [PATCH] libobs: Fix reserved word in variable names The use of the reserved name caused initialization failure on Linux. --- libobs/data/color.effect | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libobs/data/color.effect b/libobs/data/color.effect index ede1ecbce..32d731006 100644 --- a/libobs/data/color.effect +++ b/libobs/data/color.effect @@ -46,8 +46,8 @@ float3 reinhard(float3 rgb) float linear_to_st2084_channel(float x) { - float common = pow(abs(x), 0.1593017578); - return pow((0.8359375 + 18.8515625 * common) / (1. + 18.6875 * common), 78.84375); + float c = pow(abs(x), 0.1593017578); + return pow((0.8359375 + 18.8515625 * c) / (1. + 18.6875 * c), 78.84375); } float3 linear_to_st2084(float3 rgb) @@ -57,8 +57,8 @@ float3 linear_to_st2084(float3 rgb) float st2084_to_linear_channel(float u) { - float common = pow(abs(u), 1. / 78.84375); - return pow(abs(max(common - 0.8359375, 0.) / (18.8515625 - 18.6875 * common)), 1. / 0.1593017578); + float c = pow(abs(u), 1. / 78.84375); + return pow(abs(max(c - 0.8359375, 0.) / (18.8515625 - 18.6875 * c)), 1. / 0.1593017578); } float3 st2084_to_linear(float3 v)