[android] custom layer example - fix fragment shader source for opengl es 2 phones

This commit is contained in:
Ivo van Dongen
2018-02-19 18:33:57 +02:00
committed by Łukasz Paczos
parent 1f73c9999e
commit c3541cd055

View File

@@ -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: