mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-26 17:41:11 +00:00
fix: add decimal place to remove ambiguity
error: Error compiling shader: 0(142) : error C1101: ambiguous overloaded function reference "log(int)" (0) : lowp float log(lowp float) (0) : mediump float log(mediump float) (0) : float log(float) error: device_pixelshader_create (GL) failed error: Pass (0) <> missing pixel shader! error: [StreamFX] <filter::color_grade> Error loading '/usr/local/share/obs/obs-plugins/StreamFX/effects/color-grade.effect': Unknown error during effect compile. error: [StreamFX] Unexpected exception in function '_create': Unknown error during effect compile.. error: Failed to create source 'Color Grading'!
This commit is contained in:
parent
3d3aef47af
commit
cfcf975794
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
// OBS Studio does not correctly translate all HLSL functionality to GLSL.
|
||||
|
||||
// log10(x) is HLSL-exclusive and not translated by OBS Shader Parser.
|
||||
#define m_log10(x) (log(x) / log(10))
|
||||
#define m_log10(x) (log(x) / log(10.))
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Uniforms
|
||||
|
|
Loading…
Reference in a new issue