projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1ddca4
)
test-cogl-just-vertex-shader: Update to use the portable cogl_* names
author
Neil Roberts
<neil@linux.intel.com>
Tue, 7 Dec 2010 13:58:46 +0000
(13:58 +0000)
committer
Neil 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
patch
|
blob
|
history
diff --git
a/tests/conform/test-cogl-just-vertex-shader.c
b/tests/conform/test-cogl-just-vertex-shader.c
index
a20d51f
..
d0cceeb
100644
(file)
--- 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))