Add support for KHR_debug

Review Request #121177 - Created Nov. 19, 2014 and submitted

Information
Fredrik Höglund
kwin
master
Reviewers
kwin

This gives us much better debug output from GL calls.

For example instead of a message that an INVALID_OPERATION error was detected at the end of rendering, we now get the name of the GL function that generated the error and why.

Only error messages are enabled in release builds, while all debug messages and synchronous debug output are enabled in debug builds. Note that enabling synchronous debug output disables threaded optimizations in the NVIDIA driver.

commit b129f110a9d25b24c19f64ef19e3c18d038f534b
Author: Fredrik Höglund <fredrik@kde.org>
Date:   Wed Nov 19 19:02:57 2014 +0100

    Remove most calls to checkGLError()

    ...and rely on KHR_debug/GL_ARB_debug_output instead.

commit a0a9f87c2e4f5e93a2a22ffe645d8ff7a4f898a2
Author: Fredrik Höglund <fredrik@kde.org>
Date:   Wed Nov 19 19:01:55 2014 +0100

    Add support for KHR_debug

    Register a callback function for debug output when KHR_debug or
    ARB_debug_output is supported.

  
Fredrik Höglund
Review request changed

Status: Closed (submitted)

Loading...