summaryrefslogtreecommitdiff
path: root/glamor
diff options
context:
space:
mode:
authorCorentin Rossignon <corentin.rossignon@gmail.com>2018-01-04 08:34:01 +0100
committerAdam Jackson <ajax@redhat.com>2018-01-22 14:17:58 -0500
commit16896d05a6a2a91fd53cf6af56ce5e79f6abb500 (patch)
tree77a0e8a3d70d0c0afe9ba000bb25efaeb040ecb1 /glamor
parent5e83ebd76738455c443a66024b0b5eb92930b36c (diff)
glamor: Specify GLSL version for xv shader
SAMPLE is a GLSL keyword in newer OpenGL version. This fix issue with gnome-shell and playing video using xv Signed-off-by: Corentin Rossignon <corentin.rossignon@gmail.com> Bugzilla: https://bugs.freedesktop.org/104405 Reviewed-by: Adam Jackson <ajax@redhat.com> (cherry picked from commit dbfbe58b94ec07a45fd6170f96bffec55051724e)
Diffstat (limited to 'glamor')
-rw-r--r--glamor/glamor_xv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/glamor/glamor_xv.c b/glamor/glamor_xv.c
index 31320d124..e0375d7cd 100644
--- a/glamor/glamor_xv.c
+++ b/glamor/glamor_xv.c
@@ -62,6 +62,8 @@ typedef struct tagREF_TRANSFORM {
static const glamor_facet glamor_facet_xv_planar = {
.name = "xv_planar",
+ .version = 120,
+
.source_name = "v_texcoord0",
.vs_vars = ("attribute vec2 position;\n"
"attribute vec2 v_texcoord0;\n"