[Piglit] [PATCH V2] tests/spec: ARB_debug_output fix false fail

Timothy Arceri t_arceri at yahoo.com.au
Fri Sep 6 16:27:00 PDT 2013


Updates to the implementation after implementing KHR_debug means that either
GL_DEBUG_OUTPUT needs to be enabled or CONTEXT_DEBUG_BIT bit set for the message
log to be enabled.

Signed-off-by: Timothy Arceri <t_arceri at yahoo.com.au>
---
 tests/spec/arb_debug_output/api_error.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/spec/arb_debug_output/api_error.c b/tests/spec/arb_debug_output/api_error.c
index 61467c3..680c040 100644
--- a/tests/spec/arb_debug_output/api_error.c
+++ b/tests/spec/arb_debug_output/api_error.c
@@ -149,6 +149,8 @@ void piglit_init(int argc, char **argv)
    piglit_require_extension("GL_ARB_debug_output");
 
    glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
+   if (piglit_is_extension_supported("GL_KHR_debug"))
+      glEnable(GL_DEBUG_OUTPUT);
 
    if (!piglit_check_gl_error(GL_NO_ERROR))
       piglit_report_result(PIGLIT_FAIL);
-- 
1.7.9.5



More information about the Piglit mailing list