From 4e4e7a03a4ae34da89bfa8daa7c9574e7bf3222b Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sat, 8 Oct 2011 03:04:16 +0000 Subject: [PATCH] fix cedric's nv12 shader! it worked by luck only. tex_y -> tex_c in vert shdr SVN revision: 63918 --- .../src/modules/engines/gl_common/shader/nv12_nomul_vert.h | 4 ++-- .../src/modules/engines/gl_common/shader/nv12_nomul_vert.shd | 4 ++-- legacy/evas/src/modules/engines/gl_common/shader/nv12_vert.h | 4 ++-- .../evas/src/modules/engines/gl_common/shader/nv12_vert.shd | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/legacy/evas/src/modules/engines/gl_common/shader/nv12_nomul_vert.h b/legacy/evas/src/modules/engines/gl_common/shader/nv12_nomul_vert.h index 5dfbbdde79..819ae51157 100644 --- a/legacy/evas/src/modules/engines/gl_common/shader/nv12_nomul_vert.h +++ b/legacy/evas/src/modules/engines/gl_common/shader/nv12_nomul_vert.h @@ -9,10 +9,10 @@ "attribute vec4 color;\n" "attribute vec2 tex_coord, tex_coord2;\n" "uniform mat4 mvp;\n" -"varying vec2 tex_y, tex_cuv;\n" +"varying vec2 tex_c, tex_cuv;\n" "void main()\n" "{\n" " gl_Position = mvp * vertex;\n" -" tex_y = tex_coord;\n" +" tex_c = tex_coord;\n" " tex_cuv = tex_coord2 * 0.5;\n" "}\n" diff --git a/legacy/evas/src/modules/engines/gl_common/shader/nv12_nomul_vert.shd b/legacy/evas/src/modules/engines/gl_common/shader/nv12_nomul_vert.shd index de44b9d091..77fe807c00 100644 --- a/legacy/evas/src/modules/engines/gl_common/shader/nv12_nomul_vert.shd +++ b/legacy/evas/src/modules/engines/gl_common/shader/nv12_nomul_vert.shd @@ -9,10 +9,10 @@ attribute vec4 vertex; attribute vec4 color; attribute vec2 tex_coord, tex_coord2; uniform mat4 mvp; -varying vec2 tex_y, tex_cuv; +varying vec2 tex_c, tex_cuv; void main() { gl_Position = mvp * vertex; - tex_y = tex_coord; + tex_c = tex_coord; tex_cuv = tex_coord2 * 0.5; } diff --git a/legacy/evas/src/modules/engines/gl_common/shader/nv12_vert.h b/legacy/evas/src/modules/engines/gl_common/shader/nv12_vert.h index d4f41c4d0d..4574a46c52 100644 --- a/legacy/evas/src/modules/engines/gl_common/shader/nv12_vert.h +++ b/legacy/evas/src/modules/engines/gl_common/shader/nv12_vert.h @@ -10,11 +10,11 @@ "attribute vec2 tex_coord, tex_coord2;\n" "uniform mat4 mvp;\n" "varying vec4 col;\n" -"varying vec2 tex_y, tex_cuv;\n" +"varying vec2 tex_c, tex_cuv;\n" "void main()\n" "{\n" " gl_Position = mvp * vertex;\n" " col = color;\n" -" tex_y = tex_coord;\n" +" tex_c = tex_coord;\n" " tex_cuv = tex_coord2 * 0.5;\n" "}\n" diff --git a/legacy/evas/src/modules/engines/gl_common/shader/nv12_vert.shd b/legacy/evas/src/modules/engines/gl_common/shader/nv12_vert.shd index 558c3c7e3f..d24ed73911 100644 --- a/legacy/evas/src/modules/engines/gl_common/shader/nv12_vert.shd +++ b/legacy/evas/src/modules/engines/gl_common/shader/nv12_vert.shd @@ -10,11 +10,11 @@ attribute vec4 color; attribute vec2 tex_coord, tex_coord2; uniform mat4 mvp; varying vec4 col; -varying vec2 tex_y, tex_cuv; +varying vec2 tex_c, tex_cuv; void main() { gl_Position = mvp * vertex; col = color; - tex_y = tex_coord; + tex_c = tex_coord; tex_cuv = tex_coord2 * 0.5; }