Added gl::GetError checks after every OpenGL call and fixed few OpenGL errors