diff options
Diffstat (limited to 'recipes-qt/qt5/qtwayland-git/0004-EGL-Specify-vec2d-precision-qualifier-in-fragment-sh.patch')
-rw-r--r-- | recipes-qt/qt5/qtwayland-git/0004-EGL-Specify-vec2d-precision-qualifier-in-fragment-sh.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwayland-git/0004-EGL-Specify-vec2d-precision-qualifier-in-fragment-sh.patch b/recipes-qt/qt5/qtwayland-git/0004-EGL-Specify-vec2d-precision-qualifier-in-fragment-sh.patch new file mode 100644 index 00000000..47ea65fd --- /dev/null +++ b/recipes-qt/qt5/qtwayland-git/0004-EGL-Specify-vec2d-precision-qualifier-in-fragment-sh.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 5c70644070803b665f64c2d3212b55a4a3270765 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daniel Stone <daniel@fooishbar.org> | ||
3 | Date: Sun, 10 Mar 2013 11:29:38 -0700 | ||
4 | Subject: [PATCH 4/4] EGL: Specify vec2d precision qualifier in fragment shader | ||
5 | |||
6 | GLSL does not specify a default precision qualifier here, so we have to | ||
7 | explicitly define it. Use highp, as it gets redefined to mediump by | ||
8 | QGLShaderProgram when not available. | ||
9 | |||
10 | Signed-off-by: Daniel Stone <daniel@fooishbar.org> | ||
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
12 | --- | ||
13 | src/plugins/platforms/qwayland-egl/qwaylandglcontext.cpp | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/src/plugins/platforms/qwayland-egl/qwaylandglcontext.cpp b/src/plugins/platforms/qwayland-egl/qwaylandglcontext.cpp | ||
17 | index 4d8017d..a0ac6d9 100644 | ||
18 | --- a/src/plugins/platforms/qwayland-egl/qwaylandglcontext.cpp | ||
19 | +++ b/src/plugins/platforms/qwayland-egl/qwaylandglcontext.cpp | ||
20 | @@ -124,7 +124,7 @@ void QWaylandGLContext::swapBuffers(QPlatformSurface *surface) | ||
21 | gl_Position = position;\n\ | ||
22 | outTexCoords = texCoords.xy;\n\ | ||
23 | }"); | ||
24 | - m_blitProgram->addShaderFromSourceCode(QOpenGLShader::Fragment, "varying vec2 outTexCoords;\n\ | ||
25 | + m_blitProgram->addShaderFromSourceCode(QOpenGLShader::Fragment, "varying highp vec2 outTexCoords;\n\ | ||
26 | uniform sampler2D texture;\n\ | ||
27 | void main()\n\ | ||
28 | {\n\ | ||
29 | -- | ||
30 | 1.8.2.1 | ||
31 | |||