Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'drape_frontend/shaders/trackpoint.fsh.glsl')
-rw-r--r--drape_frontend/shaders/trackpoint.fsh.glsl16
1 files changed, 3 insertions, 13 deletions
diff --git a/drape_frontend/shaders/trackpoint.fsh.glsl b/drape_frontend/shaders/trackpoint.fsh.glsl
index 601bb62c3e..f96beba503 100644
--- a/drape_frontend/shaders/trackpoint.fsh.glsl
+++ b/drape_frontend/shaders/trackpoint.fsh.glsl
@@ -1,5 +1,5 @@
#ifdef SAMSUNG_GOOGLE_NEXUS
-varying lowp vec4 v_fakeColor;
+uniform sampler2D u_colorTex;
#endif
uniform float u_opacity;
@@ -9,14 +9,8 @@ varying vec4 v_color;
const float kAntialiasingScalar = 0.9;
-void main(void)
+void main()
{
-#ifdef SAMSUNG_GOOGLE_NEXUS
- // Because of a bug in OpenGL driver on Samsung Google Nexus this workaround is here.
- const float kFakeColorScalar = 0.0;
- lowp vec4 fakeColor = v_fakeColor * kFakeColorScalar;
-#endif
-
float d = dot(v_radius.xy, v_radius.xy);
vec4 finalColor = v_color;
@@ -24,9 +18,5 @@ void main(void)
float stepValue = smoothstep(aaRadius * aaRadius, v_radius.z * v_radius.z, d);
finalColor.a = finalColor.a * u_opacity * (1.0 - stepValue);
-#ifdef SAMSUNG_GOOGLE_NEXUS
- gl_FragColor = finalColor + fakeColor;
-#else
- gl_FragColor = finalColor;
-#endif
+ gl_FragColor = samsungGoogleNexusWorkaround(finalColor);
}