(core) set identity matrix before drawing cursor