fix possible rendering bug. Wrapped all GL call blocks with push/popmatrix.