Skip to content

Commit

Permalink
BUG: Missing SetCPUBufferPointer in CudaImage<...>::SetPixelContainer…
Browse files Browse the repository at this point in the history
…(...)

In CudaImage<...>::SetPixelContainer(...), after setting a new pixel
container, the CPU buffer pointer of the CudaImage's CudaDataManager shall
also be updated. This is a fix for Issue #201.
  • Loading branch information
Hakkk2002 committed Jul 25, 2018
1 parent 4364f8d commit 82ba699
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utilities/ITKCudaCommon/include/itkCudaImage.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ template <class TPixel, unsigned int VImageDimension>
void CudaImage< TPixel, VImageDimension >::SetPixelContainer(PixelContainer *container)
{
Superclass::SetPixelContainer(container);
m_DataManager->SetCPUBufferPointer(Superclass::GetBufferPointer());
m_DataManager->SetCPUDirtyFlag(false);
m_DataManager->SetGPUDirtyFlag(true);
}
Expand Down

0 comments on commit 82ba699

Please sign in to comment.