From d0d2ad9f5b5940f5fe5390bccaaa30dc1b4bf7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 17 Dec 2019 16:13:12 +0100 Subject: [PATCH] gl renderer: Remove unused variable from shader --- gsk/resources/glsl/color_matrix.glsl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gsk/resources/glsl/color_matrix.glsl b/gsk/resources/glsl/color_matrix.glsl index bd621432fd..adaee80abc 100644 --- a/gsk/resources/glsl/color_matrix.glsl +++ b/gsk/resources/glsl/color_matrix.glsl @@ -10,10 +10,7 @@ uniform mat4 u_color_matrix; uniform vec4 u_color_offset; void main() { - vec4 diffuse = Texture(u_source, vUv); - vec4 color; - - color = diffuse; + vec4 color = Texture(u_source, vUv); // Un-premultilpy if (color.a != 0.0)