Opengl debug function added and added const  to some shader functions.