diff options
author | Takumi ASAKI <asaki@sra.co.jp> | 2015-06-03 15:10:11 +0900 |
---|---|---|
committer | Takumi ASAKI <takumi.asaki@gmail.com> | 2015-06-12 02:56:11 +0000 |
commit | d00c6d052f525d49af9957a9b691daae5bbfd5c9 (patch) | |
tree | 9235143137086b7a6c690e08e887a3dcc1ad9b76 /src/quick/scenegraph/shaders | |
parent | 9c61523069d82f016c4cf927e69aea2722c3b80b (diff) |
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 <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/quick/scenegraph/shaders')
-rw-r--r-- | src/quick/scenegraph/shaders/smoothtexture_core.vert | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/quick/scenegraph/shaders/smoothtexture_core.vert b/src/quick/scenegraph/shaders/smoothtexture_core.vert index a2489a39c5..6821398e57 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; +} |