diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2018-02-19 18:33:57 +0200 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2018-03-01 11:46:04 +0100 |
commit | c84670e683f2e58aaa74fe3c236f6368950e2dab (patch) | |
tree | 97b1266946397d0407272571a486abf028ad6fa3 /platform | |
parent | eec0db49e40f40e1545c8711cf8e394042862df3 (diff) | |
download | qtlocation-mapboxgl-c84670e683f2e58aaa74fe3c236f6368950e2dab.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.cpp | 2 |
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 1ed68d0835..4467cd5e23 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: |