diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-11-11 16:37:44 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-11-17 01:01:15 +0100 |
commit | ad38ff230b00fdd35dd7eaab79c26f160092af23 (patch) | |
tree | eae0d6fd33f4b98bb1177d6d1424eb44cf0e5e54 /test | |
parent | 0ef52d7f7ceee670e8961e811364d215fde7e980 (diff) | |
download | qtlocation-mapboxgl-ad38ff230b00fdd35dd7eaab79c26f160092af23.tar.gz |
[linux] Ensure EGL uses OpenGL ES 2.0 client API
Diffstat (limited to 'test')
-rw-r--r-- | test/util/offscreen_texture.test.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/util/offscreen_texture.test.cpp b/test/util/offscreen_texture.test.cpp index 9a07f4f3bf..1d6a6e80e3 100644 --- a/test/util/offscreen_texture.test.cpp +++ b/test/util/offscreen_texture.test.cpp @@ -74,17 +74,26 @@ TEST(OffscreenTexture, RenderToTexture) { MBGL_CHECK_ERROR(glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)); Shader paintShader(R"MBGL_SHADER( +#ifdef GL_ES +precision mediump float; +#endif attribute vec2 a_pos; void main() { gl_Position = vec4(a_pos, 0, 1); } )MBGL_SHADER", R"MBGL_SHADER( +#ifdef GL_ES +precision mediump float; +#endif void main() { gl_FragColor = vec4(0, 0.8, 0, 0.8); } )MBGL_SHADER"); Shader compositeShader(R"MBGL_SHADER( +#ifdef GL_ES +precision mediump float; +#endif attribute vec2 a_pos; varying vec2 v_texcoord; void main() { @@ -92,6 +101,9 @@ void main() { v_texcoord = (a_pos + 1.0) / 2.0; } )MBGL_SHADER", R"MBGL_SHADER( +#ifdef GL_ES +precision mediump float; +#endif uniform sampler2D u_texture; varying vec2 v_texcoord; void main() { |