diff options
author | Vinson Lee <vlee@vmware.com> | 2009-06-26 15:02:22 -0700 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2009-06-26 15:02:22 -0700 |
commit | 5ba2137a0e37541cd308da318565ccb69b2dae33 (patch) | |
tree | 847cff0ded1dfe95f203f0526b21eca822ae6e4a /src | |
parent | 15deae7eef7b7433d89a3ef58e64a476fde125f8 (diff) |
glsl1: Add test case of discard in for loop.
This test case crashes Mac OS with NVIDIA G8x/G9x video cards.
Test case is from Alex Corscadden.
Diffstat (limited to 'src')
-rw-r--r-- | src/glean/tglsl1.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/glean/tglsl1.cpp b/src/glean/tglsl1.cpp index 9e17d9a..170d114 100644 --- a/src/glean/tglsl1.cpp +++ b/src/glean/tglsl1.cpp @@ -1172,6 +1172,23 @@ static const ShaderProgram Programs[] = { }, { + "discard statement in for loop", + NO_VERTEX_SHADER, + "void main() { \n" + " gl_FragColor = vec4(1.0); \n" + " int i; \n" + " for (i = 0; i < 1000; i++) { \n" + " if (i == 9) { \n" + " discard; \n" + " } \n" + " } \n" + "} \n", + { 0.0, 0.0, 0.0, 0.0 }, // glClear color + DONT_CARE_Z, + FLAG_NONE + }, + + { "conditional expression", NO_VERTEX_SHADER, "void main() { \n" |