Browse Source

libobs: Fix reserved word in variable names

The use of the reserved name caused initialization failure on Linux.
Norihiro Kamae 3 năm trước cách đây
mục cha
commit
dd43635e78
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      libobs/data/color.effect

+ 4 - 4
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)