diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2014-10-02 11:53:32 +0300 |
---|---|---|
committer | Tapani Pälli <tapani.palli@intel.com> | 2014-10-09 07:53:13 +0300 |
commit | 73cbddbfb2cb2d9dcfc894b8e3fb3d8d29117276 (patch) | |
tree | 1a303a4a37eb80958258b3b4b517948282f8bdfb | |
parent | e86ef507112ee0481cde39a45a00a6cc1077f3ee (diff) | |
download | piglit-73cbddbfb2cb2d9dcfc894b8e3fb3d8d29117276.tar.gz |
gles2: add linker test for shader not writing to gl_Position
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
-rw-r--r-- | tests/spec/glsl-es-1.00/execution/glsl-no-glposition.shader_test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/execution/glsl-no-glposition.shader_test b/tests/spec/glsl-es-1.00/execution/glsl-no-glposition.shader_test new file mode 100644 index 000000000..63fe20a75 --- /dev/null +++ b/tests/spec/glsl-es-1.00/execution/glsl-no-glposition.shader_test @@ -0,0 +1,21 @@ +# +# Tests that we can link a shader program on OpenGL ES 2.0 where +# vertex shader does not write to gl_Position +# +[require] +GL ES >= 2.0 +GLSL ES >= 1.00 + +[vertex shader] +void main() +{ +} + +[fragment shader] +void main() +{ + gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0); +} + +[test] +link success |