From d03c3a646ae4d26358ad5a48fe320845f7f099ed Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 7 Dec 2010 13:58:46 +0000 Subject: [PATCH] test-cogl-just-vertex-shader: Update to use the portable cogl_* names The vertex shader in this test now uses the cogl_* names for the GL builtin so that it will work on GLES2 as well. --- tests/conform/test-cogl-just-vertex-shader.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/conform/test-cogl-just-vertex-shader.c b/tests/conform/test-cogl-just-vertex-shader.c index a20d51f8a..d0cceebba 100644 --- a/tests/conform/test-cogl-just-vertex-shader.c +++ b/tests/conform/test-cogl-just-vertex-shader.c @@ -36,8 +36,10 @@ draw_frame (void) "void\n" "main ()\n" "{\n" - " gl_Position = ftransform ();\n" - " gl_FrontColor = gl_Color;\n" + " cogl_position_out = " + "cogl_modelview_projection_matrix * " + "cogl_position_in;\n" + " cogl_color_out = cogl_color_in;\n" "}\n"); cogl_shader_compile (shader); if (!cogl_shader_is_compiled (shader))