[Piglit] [PATCH 2/5] gl-3.1/draw-buffer-errors: skip if current Context is > 4.0

Alejandro PiƱeiro apinheiro at igalia.com
Wed Jan 11 21:46:53 UTC 2017


Behaviour and error list changed on OpenGL > 4.0. So much
that it is worth to create a new 4.x test. So we skip if
current context is > 4.0.
---
 tests/spec/gl-3.1/draw-buffers-errors.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/spec/gl-3.1/draw-buffers-errors.c b/tests/spec/gl-3.1/draw-buffers-errors.c
index c18065b..cb1fd5b 100644
--- a/tests/spec/gl-3.1/draw-buffers-errors.c
+++ b/tests/spec/gl-3.1/draw-buffers-errors.c
@@ -77,6 +77,13 @@ piglit_init(int argc, char **argv)
 	bool pass = true;
 	unsigned i;
 
+	if (piglit_get_gl_version() >= 40) {
+		/* Behaviour/error list changed on OpenGL 4.0, so we
+		 * let the equivalent 4.x test to test it.
+		 */
+		piglit_report_result(PIGLIT_SKIP);
+	}
+
 	for (i = 0; i < ARRAY_SIZE(valids); i++) {
 		GLenum err = 0;
 		glDrawBuffers(1, &valids[i]);
-- 
2.9.3



More information about the Piglit mailing list