diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2013-10-11 09:38:06 -0700 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2013-10-15 15:44:42 -0700 |
commit | 7762ae7c91ef9ea8f904f1531544a8e56533270c (patch) | |
tree | 5ccfa9ebc1bbbd3f7f31a660e2bc8308b401bd33 | |
parent | 2b6d144b843d3616866aea39ee56594f4027e7f6 (diff) |
shader_runner: enable depth clear
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
-rw-r--r-- | tests/shaders/shader_runner.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 8e601aabc..6841cd304 100644 --- a/tests/shaders/shader_runner.c +++ b/tests/shaders/shader_runner.c @@ -1692,6 +1692,10 @@ piglit_display(void) get_floats(line + 11, c, 4); glClearColor(c[0], c[1], c[2], c[3]); clear_bits |= GL_COLOR_BUFFER_BIT; + } else if (string_match("clear depth", line)) { + get_floats(line + 11, c, 1); + glClearDepth(c[0]); + clear_bits |= GL_DEPTH_BUFFER_BIT; } else if (string_match("clear", line)) { glClear(clear_bits); } else if (sscanf(line, |