VIGS/qt5: fix scaling shader for GL3 37/26037/1
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Thu, 14 Aug 2014 12:42:26 +0000 (16:42 +0400)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Thu, 14 Aug 2014 12:43:31 +0000 (16:43 +0400)
should use texture instead of texture2D

Change-Id: Ib0582f8c503346d9e6a22ece0fc597055340a95a
Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
hw/vigs/vigs_gl_backend.c

index 23307510763634c6f8203618ab6c0e5d7576bc6c..5485c6c6532ab86433844a80d2a154b713cf9478 100644 (file)
@@ -307,13 +307,13 @@ ycubic.y, ycubic.z + ycubic.w);\n\
     vec4 offset = c + vec4(xcubic.y, xcubic.w, ycubic.y, ycubic.w) /\n\
 s;\n\
 \n\
-    vec4 sample0 = texture2D(tex, vec2(offset.x, offset.z) *\n\
+    vec4 sample0 = texture(tex, vec2(offset.x, offset.z) *\n\
 texscale);\n\
-    vec4 sample1 = texture2D(tex, vec2(offset.y, offset.z) *\n\
+    vec4 sample1 = texture(tex, vec2(offset.y, offset.z) *\n\
 texscale);\n\
-    vec4 sample2 = texture2D(tex, vec2(offset.x, offset.w) *\n\
+    vec4 sample2 = texture(tex, vec2(offset.x, offset.w) *\n\
 texscale);\n\
-    vec4 sample3 = texture2D(tex, vec2(offset.y, offset.w) *\n\
+    vec4 sample3 = texture(tex, vec2(offset.y, offset.w) *\n\
 texscale);\n\
 \n\
     float sx = s.x / (s.x + s.y);\n\