mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
libobs: Fix reserved word in variable names
The use of the reserved name caused initialization failure on Linux.
This commit is contained in:
parent
0f53dc28bb
commit
dd43635e78
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user