mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-08 06:58:18 +02:00
gl: Replace ftransform() with manual coordinate calculation in shaders
The ftransform() shader function was deprecated and removed in recent GLSL versions and is not included at all in GLSL ES. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
b13198348c
commit
d88ada384f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue