Removes legacy GL code from GLhud. This change makes hud avaiable on OpenGLES and core profile.