From fb085e20113867a61d778007e18ceafec7d9c9e3 Mon Sep 17 00:00:00 2001 From: raster Date: Fri, 13 Nov 2009 08:38:12 +0000 Subject: [PATCH] fix color stuff.. next.. need to fix z stuff. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@43658 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/gl_common/evas_gl_context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/engines/gl_common/evas_gl_context.c b/src/modules/engines/gl_common/evas_gl_context.c index d78f816..c2293ee 100644 --- a/src/modules/engines/gl_common/evas_gl_context.c +++ b/src/modules/engines/gl_common/evas_gl_context.c @@ -110,6 +110,7 @@ _evas_gl_common_viewport_set(Evas_GL_Context *gc) glUseProgram(gc->shared->shader.tex.prog); glUniformMatrix4fv(glGetUniformLocation(gc->shared->shader.tex.prog, "mvp"), 1, GL_FALSE, proj); + glUseProgram(gc->shader.cur_prog); } Evas_GL_Context * @@ -213,6 +214,7 @@ evas_gl_common_context_new(void) glUniform1i(glGetUniformLocation(shared->shader.yuv.prog, "tex"), 0); glUniform1i(glGetUniformLocation(shared->shader.yuv.prog, "texu"), 1); glUniform1i(glGetUniformLocation(shared->shader.yuv.prog, "texv"), 2); + glUseProgram(gc->shader.cur_prog); // in shader: // uniform sampler2D tex[8]; // @@ -669,6 +671,7 @@ evas_gl_common_context_image_map4_push(Evas_GL_Context *gc, PUSH_VERTEX((p[points[i]].x >> FP), (p[points[i]].y >> FP), 0); +// (p[points[i]].y >> FP) + 4096); // (p[points[i]].z >> FP)); PUSH_TEXUV(tx[points[i]], ty[points[i]]); -- 2.7.4