[lookandfeel] Fix GLES incompatibilities in UserDelegate shader code

Authored by bruns on Sep 11 2017, 4:25 PM.

Description

[lookandfeel] Fix GLES incompatibilities in UserDelegate shader code

Summary:
BUG: 382668

The shader compilation currently fails on GLES with errors like:
"0:6(2): error: No precision specified in this scope for type `vec4'"

GLES requires variable qualifiers like highp/lowp, whereas desktop OpenGL
does not. As QGlShaderProgram adds suitable defines on desktop OpenGL
for these qualifiers, it is safe to add these to a declarations, see:
http://doc.qt.io/qt-5/qglshaderprogram.html#writing-portable-shaders

Reviewers: Plasma, davidedmundson

Reviewed By: Plasma, davidedmundson

Subscribers: plasma-devel

Tags: Plasma

Maniphest Tasks: T7071

Differential Revision: https://phabricator.kde.org/D7770

Details

Committed
brunsSep 26 2017, 9:16 PM
Reviewer
Plasma
Differential Revision
D7770: [lookandfeel] Fix GLES incompatibilities in UserDelegate shader code
Parents
R120:3cad8d22ce79: Merge branch 'Plasma/5.11'
Branches
Unknown
Tags
Unknown