From b7f8ca3ae372dceb447265fa7170771bdaab2041 Mon Sep 17 00:00:00 2001 From: John Haddon Date: Fri, 2 Feb 2024 22:29:10 +0000 Subject: [PATCH] Resample : Fix compilation on Mac --- src/GafferImage/Resample.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/GafferImage/Resample.cpp b/src/GafferImage/Resample.cpp index b7f1adcac54..be727995a8c 100644 --- a/src/GafferImage/Resample.cpp +++ b/src/GafferImage/Resample.cpp @@ -1040,7 +1040,7 @@ class MergeListsByIndices { float depth; int listIndex; - inline bool operator<( const HeapEntry& other ) + inline bool operator<( const HeapEntry& other ) const { return depth > other.depth; } @@ -1525,7 +1525,6 @@ void Resample::compute( Gaffer::ValuePlug *output, const Gaffer::Context *contex // combining step. std::vector< std::vector< SampledDepth > > sampledPixels( inputSize.x * inputSize.y ); - unsigned int totalSampledDepthsCount = 0; MergeListsByIndices listMerger( horizontallyMixedDepths ); std::vector< float > fullyMixedDepths; @@ -1574,8 +1573,6 @@ void Resample::compute( Gaffer::ValuePlug *output, const Gaffer::Context *contex fullyMixedDepths, sampledPixels[ y * inputSize.x + x ] ); - - totalSampledDepthsCount += sampledPixels[ y * inputSize.x + x ].size(); } }