Added a load of error checking to gl calls, and removed some suspect matrix settings calls that seem unecessary
Added a load of error checking to gl calls, and removed some suspect matrix settings calls that seem unecessary

whitingjp/whitgl,whitingjp/whitgl,whitingjp/whitgl,whitingjp/whitgl