From b2b31b88ca2b2f094f3f284180b911316eea95e3 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 8 Feb 2017 15:43:01 +0100 Subject: [PATCH] Fix shader on Windows. --- .../ui/modules/Common/Image/RoundedImage.qml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/linphone-desktop/ui/modules/Common/Image/RoundedImage.qml b/linphone-desktop/ui/modules/Common/Image/RoundedImage.qml index b32987422..3b12874ed 100644 --- a/linphone-desktop/ui/modules/Common/Image/RoundedImage.qml +++ b/linphone-desktop/ui/modules/Common/Image/RoundedImage.qml @@ -36,13 +36,14 @@ Item { // See: https://www.opengl.org/sdk/docs/man/html/mix.xhtml fragmentShader: ' - uniform lowp sampler2D image; - uniform lowp sampler2D mask; - uniform lowp vec4 backgroundColor; - uniform lowp vec4 foregroundColor; + precision lowp float; + uniform sampler2D image; + uniform sampler2D mask; + uniform vec4 backgroundColor; + uniform vec4 foregroundColor; - uniform lowp float qt_Opacity; - varying highp vec2 qt_TexCoord0; + uniform float qt_Opacity; + varying vec2 qt_TexCoord0; void main () { vec4 tex = texture2D(image, qt_TexCoord0);