From: Stanislav Vorobiov Date: Thu, 14 Aug 2014 12:42:26 +0000 (+0400) Subject: VIGS/qt5: fix scaling shader for GL3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6936d1c43157bfd0369ca0276081d71627693465;p=sdk%2Femulator%2Fqemu.git VIGS/qt5: fix scaling shader for GL3 should use texture instead of texture2D Change-Id: Ib0582f8c503346d9e6a22ece0fc597055340a95a Signed-off-by: Stanislav Vorobiov --- diff --git a/hw/vigs/vigs_gl_backend.c b/hw/vigs/vigs_gl_backend.c index 2330751076..5485c6c653 100644 --- a/hw/vigs/vigs_gl_backend.c +++ b/hw/vigs/vigs_gl_backend.c @@ -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\