Skip to content

Commit

Permalink
opengl: set precision only for GL_ES
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxxzer committed Feb 26, 2020
1 parent 45e500f commit 6ec938b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qml/opengl/polarplot/fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
*/

// Set float precision
precision mediump float;
#ifdef GL_ES
precision mediump float;
#endif

uniform sampler2D src;
uniform float angle;
Expand Down

0 comments on commit 6ec938b

Please sign in to comment.