ImageViewURL & Styling Examples Launch Fix on GLES 3.2 Devices
[platform/core/uifw/dali-demo.git] / examples / image-view-url / shaders / image-view-url.frag
index 4b07ce4..27bbc18 100644 (file)
@@ -1,5 +1,5 @@
 precision highp float;
-varying mediump vec2 vTexCoord;
+INPUT mediump vec2 vTexCoord;
 uniform sampler2D sTexture;
 uniform mediump float uDelta;
 
@@ -9,6 +9,6 @@ void main()
   vec2 texCoord = vTexCoord * 2. - 1.;
   mat2 rotation = mat2(cos(uDelta), -sin(uDelta), sin(uDelta), cos(uDelta));
   texCoord = (rotation * texCoord) * .5 + .5;
-  color += texture2D( sTexture, texCoord );
-  gl_FragColor = color;
-}
\ No newline at end of file
+  color += TEXTURE( sTexture, texCoord );
+  OUT_COLOR = color;
+}