[gtk/wip/baedert/gl-rework: 23/47] gl renderer: Remove unused variable from shader
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework: 23/47] gl renderer: Remove unused variable from shader
- Date: Sun, 22 Dec 2019 05:43:51 +0000 (UTC)
commit 9f88daa97c7c79d1ffc4cd6d3b97e49e006493cc
Author: Timm Bäder <mail baedert org>
Date: Tue Dec 17 16:13:12 2019 +0100
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]