Factorized debug ouput code
Merge branch '4.4.1' of https://github.com/g-truc/ogl-samples into 4.4.1