fixing texture delete for RCM