From 866806fefb9b9156d881b4ea88891e4fcb58c172 Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Sun, 6 Mar 2016 01:04:22 -0800 Subject: [PATCH] fixup! OpenGL: Implement DOT3 texture combiner --- src/video_core/renderer_opengl/gl_shader_gen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index 16ab3f0a5..efe3dda78 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -199,7 +199,7 @@ static void AppendColorCombiner(std::string& out, TevStageConfig::Operation oper out += "min(" + variable_name + "[0] + " + variable_name + "[1], vec3(1.0)) * " + variable_name + "[2]"; break; case Operation::Dot3_RGB: - out += "dot(" + variable_name + "[0], " + variable_name + "[1])"; + out += "vec3(dot(" + variable_name + "[0], " + variable_name + "[1]))"; break; default: out += "vec3(0.0)";