summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2018-02-19 18:33:57 +0200
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2018-02-23 12:03:53 +0200
commit5fc3d4ab1e673b25a9f180fb247a216280475335 (patch)
tree32d0083dd0e24bae1409ebde892827f6abea72cb /platform
parent6eedccf35f31f78648e67a3028db07f8932daf22 (diff)
downloadqtlocation-mapboxgl-5fc3d4ab1e673b25a9f180fb247a216280475335.tar.gz
[android] custom layer example - fix fragment shader source for opengl es 2 phones
Diffstat (limited to 'platform')
-rw-r--r--platform/android/src/example_custom_layer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/src/example_custom_layer.cpp b/platform/android/src/example_custom_layer.cpp
index 6d0bd4de4b..01a4aaaeb1 100644
--- a/platform/android/src/example_custom_layer.cpp
+++ b/platform/android/src/example_custom_layer.cpp
@@ -6,7 +6,7 @@
#include <mbgl/style/layers/custom_layer.hpp>
static const GLchar * vertexShaderSource = "attribute vec2 a_pos; void main() { gl_Position = vec4(a_pos, 0, 1); }";
-static const GLchar * fragmentShaderSource = "uniform vec4 fill_color; void main() { gl_FragColor = fill_color; }";
+static const GLchar * fragmentShaderSource = "uniform highp vec4 fill_color; void main() { gl_FragColor = fill_color; }";
class ExampleCustomLayer {
public: