Explorar el Código

libobs-opengl: Fix atan2 HLSL->GLSL transpile

jp9000 hace 5 años
padre
commit
2a318d915f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      libobs-opengl/gl-shaderparser.c

+ 1 - 1
libobs-opengl/gl-shaderparser.c

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