Glut -> PDL, memory issues fixed