Skip to content

Commit 4dba268

Browse files
committed
Fix a small bug in CNormalMapToDerivativeFilter
1 parent b6e4831 commit 4dba268

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/nbl/asset/filters/CNormalMapToDerivativeFilter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ class CNormalMapToDerivativeFilterBase : public impl::CSwizzleableAndDitherableF
5252

5353
const core::vectorSIMDf getAbsoluteLayerScaleValues(size_t layer)
5454
{
55-
if (!scaleValuesPointer)
55+
if (scaleValuesPointer)
5656
{
5757
auto offset = layer * forcedScratchChannelAmount;
5858
auto* data = scaleValuesPointer + offset;
5959
return core::vectorSIMDf (*data, *(data + 1));
6060
}
6161
else
62-
return 0; // or maybe assert?
62+
return core::vectorSIMDf(0.f); // or maybe assert?
6363
}
6464

6565
protected:

0 commit comments

Comments
 (0)