updateCache is an internal function which is used to update the renderer cache node.
| 
 
Parameters   | 
 
Description   | 
| 
 
HAL* hal   | 
 
The renderer HAL.   | 
| 
 
TreeCacheNode* pparent   | 
 
Pointer to the root/parent node.   | 
| 
 
TreeCacheNode* pinsert   | 
 
Pointer to the node to be created/inserted into the parent. This can be null.   | 
| 
 
TreeNode* pnode   | 
 
Pointer to the node to be updated.   | 
| 
 
UInt16 depth   | 
 
The depth of the node.   | 
The updated cache node.