switch off debug messages
Added OpenGL error checking when in Debug