libobs-opengl: Fix atan2 HLSL->GLSL transpile

This commit is contained in:
jp9000 2020-04-07 23:52:53 -07:00
parent 6ca52db8ce
commit 2a318d915f

View File

@ -450,7 +450,7 @@ static bool gl_write_intrinsic(struct gl_shader_parser *glsp,
bool written = true;
if (strref_cmp(&token->str, "atan2") == 0) {
dstr_cat(&glsp->gl_string, "atan2");
dstr_cat(&glsp->gl_string, "atan");
} else if (strref_cmp(&token->str, "ddx") == 0) {
dstr_cat(&glsp->gl_string, "dFdx");
} else if (strref_cmp(&token->str, "ddy") == 0) {