test-cogl-just-vertex-shader: Update to use the portable cogl_* names
authorNeil Roberts <neil@linux.intel.com>
Tue, 7 Dec 2010 13:58:46 +0000 (13:58 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 13 Dec 2010 17:29:15 +0000 (17:29 +0000)
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

index a20d51f..d0cceeb 100644 (file)
@@ -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))