texture cache was not being properly deleted.