From b40d0f068b7fca0fddd03a3b04509ab7d44b201b Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Tue, 21 Jun 2022 07:12:34 +0200 Subject: [PATCH] :wrench: MAke iTexCoord behave the same on KWin and GNOME --- resources/shaders/common.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/shaders/common.glsl b/resources/shaders/common.glsl index 677dfe8..98507b1 100644 --- a/resources/shaders/common.glsl +++ b/resources/shaders/common.glsl @@ -98,7 +98,7 @@ uniform vec2 uSize; uniform float uPadding; // On GNOME, we set iTexCoord to be an alias for the cogl variables. -#define iTexCoord cogl_tex_coord_in[0] +vec2 iTexCoord = cogl_tex_coord_in[0].st; // Shell.GLSLEffect uses straight alpha. So we have to convert from premultiplied. vec4 getInputColor(vec2 coords) {