Use GL_KHR_debug
Created by: ascent12
Currently we use a macro (GL_CALL) to wrap around each of the OpenGL functions to check glError and log if anything went wrong. It works, but it's used inconsistently (e.g. outside of wlr-render) and is ugly, in my opinion.
With this OpenGL extension, we can set log handlers that the OpenGL implementation will call when something goes wrong and actually get better quality debug messages than what we have currently.
A disadvantage of this is that we will lose the ability to print line numbers of where the error specifically happens. The extension does have some ways to get some arbitrary data into the messages, so we could probably do as good as file + function.