Redesigned vertex collection copy routines and resources deallocation for shaders and textures.