diff options
author | Brian Paul <brianp@vmware.com> | 2009-09-03 07:53:57 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-02-10 16:10:45 -0700 |
commit | 98b8e251649ad7e7b0aa5a94b0d6e5e4cc6cfc5d (patch) | |
tree | 167563266a038cbf10e831d569efe88886ab3e5b | |
parent | 20583bd4489669713b81128f8c6ab2fda6a8cc98 (diff) |
glsl1: added inf/nan test (disabled for now)
-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 4ec2509..ffd9280 100644 --- a/src/glean/tglsl1.cpp +++ b/src/glean/tglsl1.cpp @@ -3652,6 +3652,23 @@ static const ShaderProgram Programs[] = { FLAG_VERSION_1_20 }, +#if 0 + // Check behaviour of inf/nan ========================================= + { + "Divide by zero", + NO_VERTEX_SHADER, + "uniform vec4 uniform1; \n" + "void main() { \n" + " float div = uniform1.y / uniform1.w; // div by zero\n" + " div = div * uniform1.w; // mul by zero \n" + " gl_FragColor = vec4(0.5 + div); \n" + "} \n", + { 0.5, 0.5, 0.5, 0.5 }, + DONT_CARE_Z, + FLAG_NONE + }, +#endif + // Illegal link test ================================================== { "gl_Position not written check", |