Error found it is in the iterator in the -- operator it should be: m_xintile = m_tile->width()*m_depth - sizeOfTp; Best regards Casper Boemann