fixed use of nullptr in variable args for wp8
moved deleteTextures to intiWithMipmaps()