Clean up GL code