[cairo] [PATCH 3/6] gl: Replace ftransform() with manual coordinate calculation in shaders
alexandros.frantzis at linaro.org
alexandros.frantzis at linaro.org
Tue Feb 8 03:10:12 PST 2011
From: Alexandros Frantzis <alexandros.frantzis at linaro.org>
The ftransform() shader function was deprecated and removed in recent
GLSL versions and is not included at all in GLSL ES.
---
src/cairo-gl-shaders.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/cairo-gl-shaders.c b/src/cairo-gl-shaders.c
index 1b10b04..13efccb 100644
--- a/src/cairo-gl-shaders.c
+++ b/src/cairo-gl-shaders.c
@@ -520,7 +520,7 @@ cairo_gl_shader_get_vertex_source (cairo_gl_var_type_t src,
_cairo_output_stream_printf (stream,
"void main()\n"
"{\n"
- " gl_Position = ftransform();\n");
+ " gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n");
cairo_gl_shader_emit_vertex (stream, src, CAIRO_GL_TEX_SOURCE);
cairo_gl_shader_emit_vertex (stream, mask, CAIRO_GL_TEX_MASK);
--
1.7.2.3
More information about the cairo
mailing list