Skip to content

Commit 24d0686

Browse files
committed
Minor code review for invalid args
1 parent 354292b commit 24d0686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/ToneMapPostProcess.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ ToneMapPostProcess::Impl::Impl(_In_ ID3D12Device* device, const RenderTargetStat
317317
if (op >= Operator_Max)
318318
throw std::invalid_argument("Tonemap operator not defined");
319319

320-
if (func > TransferFunction_Max)
320+
if (func >= TransferFunction_Max)
321321
throw std::invalid_argument("Transfer function not defined");
322322

323323
if (!device)

0 commit comments

Comments
 (0)