v2: instead of c, make it a shader_runner_gles2 test Signed-off-by: Tapani Pälli <tapani.pa...@intel.com> --- .../gles-2.0/glsl-no-vertex-attribs.shader_test | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/spec/gles-2.0/glsl-no-vertex-attribs.shader_test
diff --git a/tests/spec/gles-2.0/glsl-no-vertex-attribs.shader_test b/tests/spec/gles-2.0/glsl-no-vertex-attribs.shader_test new file mode 100644 index 0000000..36a6b4c --- /dev/null +++ b/tests/spec/gles-2.0/glsl-no-vertex-attribs.shader_test @@ -0,0 +1,25 @@ +# +# Tests that we can succesfully render a point with OpenGL ES 2.0 +# without having any vertex attributes enabled. +# +[require] +GL ES >= 2.0 +GLSL ES >= 1.00 +SIZE 1 1 + +[vertex shader] +void main() +{ + gl_PointSize = 1.0; + gl_Position = vec4(0.0, 0.0, 0.0, 1.0); +} + +[fragment shader] +void main() +{ + gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0); +} + +[test] +draw arrays GL_POINTS 0 1 +relative probe rgba (0.0, 0.0) (0.0, 1.0, 0.0, 1.0) -- 1.9.3 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit