[GL] Removed unused code
[GL] Only print debug info in debug mode