(texinfo, data)
return texinfo
Update incomplete texinfo dict from data.
    
    Arguments:
      * texinfo: a potentially incomplete texture information dictionary.
      * data: the associated data, used to complete the information.
      
    Returns:
      * texinfo: the completed information dictionary.
Update incomplete texinfo dict from data.
    
    Arguments:
      * texinfo: a potentially incomplete texture information dictionary.
      * data: the associated data, used to complete the information.
      
    Returns:
      * texinfo: the completed information dictionary.
Update incomplete texinfo dict from data . Arguments : * texinfo : a potentially incomplete texture information dictionary . * data : the associated data used to complete the information . Returns : * texinfo : the completed information dictionary .
def _update_texinfo(texinfo, data):
    """Update incomplete texinfo dict from data.
    
    Arguments:
      * texinfo: a potentially incomplete texture information dictionary.
      * data: the associated data, used to complete the information.
      
    Returns:
      * texinfo: the completed information dictionary.
      
    """
    texinfo_data = _get_texinfo(data)
    if "ncomponents" not in texinfo:
        texinfo.update(ncomponents=texinfo_data['ncomponents'])
    if "ndim" not in texinfo:
        texinfo.update(ndim=texinfo_data['ndim'])
    if "size" not in texinfo:
        texinfo.update(size=texinfo_data['size'])
    return texinfo
def _update_texinfo ( texinfo , data ) : texinfo_data = _get_texinfo ( data ) if "ncomponents" not in texinfo : texinfo . update ( ncomponents = texinfo_data [ 'ncomponents' ] ) if "ndim" not in texinfo : texinfo . update ( ndim = texinfo_data [ 'ndim' ] ) if "size" not in texinfo : texinfo . update ( size = texinfo_data [ 'size' ] ) return texinfo