Signed-off-by: Jordan Justen <[email protected]>
---
 tests/shaders/shader_runner.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 8e601aa..6841cd3 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,
-- 
1.7.10.4

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to