[Piglit] [PATCH 15/23] shader_runner: Add color command.
Fabian Bieler
fabianbieler at fastmail.fm
Thu Nov 23 20:46:07 UTC 2017
---
tests/shaders/shader_runner.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 4299e34..fed9692 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -2991,6 +2991,12 @@ piglit_display(void)
piglit_report_result(PIGLIT_FAIL);
}
glClipPlane(GL_CLIP_PLANE0 + x, d);
+#ifdef PIGLIT_USE_OPENGL
+ } else if (parse_str(line, "color ", &rest)) {
+ parse_floats(rest, c, 4, NULL);
+ assert(!piglit_is_core_profile);
+ glColor4fv(c);
+#endif
} else if (sscanf(line,
"compute %d %d %d",
&x, &y, &z) == 3) {
--
2.7.4
More information about the Piglit
mailing list