From d00c6d052f525d49af9957a9b691daae5bbfd5c9 Mon Sep 17 00:00:00 2001 From: Takumi ASAKI Date: Wed, 3 Jun 2015 15:10:11 +0900 Subject: [PATCH] Android: Another work around bug of Vertex Shader Just like commit fd565ec6, this fixes another vertex shader compilation issue on certain OpenGL drivers. Change-Id: Ided3d6082fa0790659e9c242d0b43d7de5a2ae4d Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/quick/scenegraph/shaders/smoothtexture_core.vert | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/quick/scenegraph/shaders/smoothtexture_core.vert b/src/quick/scenegraph/shaders/smoothtexture_core.vert index a2489a39c..6821398e5 100644 --- a/src/quick/scenegraph/shaders/smoothtexture_core.vert +++ b/src/quick/scenegraph/shaders/smoothtexture_core.vert @@ -50,5 +50,8 @@ void main() bool onEdge = any(notEqual(vertexOffset, vec2(0.))); bool outerEdge = all(equal(texCoordOffset, vec2(0.))); - vertexOpacity = onEdge && outerEdge ? 0. : opacity; -} \ No newline at end of file + if (onEdge && outerEdge) + vertexOpacity = 0.; + else + vertexOpacity = opacity; +} -- 2.34.1