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 <[email protected]>
---
 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

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

Reply via email to