[Piglit] [PATCH] KHR_debug: test glObjectPtrLabel() if OpenGL is 3.1 or greater
eu at felipetonello.com
eu at felipetonello.com
Thu Mar 13 17:43:56 PDT 2014
From: "Felipe F. Tonello" <eu at felipetonello.com>
glFenceSync is only supported if the GL version is 3.2 or greater, or if
the ARB_sync extension is supported.
Signed-off-by: Felipe F. Tonello <eu at felipetonello.com>
---
tests/spec/khr_debug/debug-object-label.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/spec/khr_debug/debug-object-label.c b/tests/spec/khr_debug/debug-object-label.c
index 70c2eba..7a5057f 100644
--- a/tests/spec/khr_debug/debug-object-label.c
+++ b/tests/spec/khr_debug/debug-object-label.c
@@ -466,7 +466,7 @@ void piglit_init(int argc, char **argv)
pass = test_object_label_types() && pass;
pass = test_object_label() && pass;
pass = test_get_object_label() && pass;
- if (piglit_is_extension_supported("GL_ARB_sync"))
+ if (piglit_get_gl_version() >= 32 || piglit_is_extension_supported("GL_ARB_sync"))
pass = test_object_ptr_label() && pass;
piglit_report_result(pass ? PIGLIT_PASS : PIGLIT_FAIL);
--
1.8.5.3
More information about the Piglit
mailing list