Added swapContents method to Texture