From ede541db0a71d4a58b95c0af514304e36bd7e4c3 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Mon, 20 Jan 2020 13:19:02 +0000 Subject: [PATCH] Clean up the OpenGL shaders a bit --- src/Backends/Rendering/OpenGL3.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Backends/Rendering/OpenGL3.cpp b/src/Backends/Rendering/OpenGL3.cpp index 06630b29..34b344d7 100644 --- a/src/Backends/Rendering/OpenGL3.cpp +++ b/src/Backends/Rendering/OpenGL3.cpp @@ -93,7 +93,7 @@ static const GLchar *vertex_shader_plain = " \ attribute vec2 input_vertex_coordinates; \ void main() \ { \ - gl_Position = vec4(input_vertex_coordinates.x, input_vertex_coordinates.y, 0.0, 1.0); \ + gl_Position = vec4(input_vertex_coordinates.xy, 0.0, 1.0); \ } \ "; @@ -105,7 +105,7 @@ varying vec2 texture_coordinates; \ void main() \ { \ texture_coordinates = input_texture_coordinates; \ - gl_Position = vec4(input_vertex_coordinates.x, input_vertex_coordinates.y, 0.0, 1.0); \ + gl_Position = vec4(input_vertex_coordinates.xy, 0.0, 1.0); \ } \ "; @@ -186,7 +186,7 @@ static const GLchar *vertex_shader_plain = " \ in vec2 input_vertex_coordinates; \ void main() \ { \ - gl_Position = vec4(input_vertex_coordinates.x, input_vertex_coordinates.y, 0.0, 1.0); \ + gl_Position = vec4(input_vertex_coordinates.xy, 0.0, 1.0); \ } \ "; @@ -198,7 +198,7 @@ out vec2 texture_coordinates; \ void main() \ { \ texture_coordinates = input_texture_coordinates; \ - gl_Position = vec4(input_vertex_coordinates.x, input_vertex_coordinates.y, 0.0, 1.0); \ + gl_Position = vec4(input_vertex_coordinates.xy, 0.0, 1.0); \ } \ ";