Skip to content

Commit 266d0eb

Browse files
author
kevyuu
committed
Fix validation on raygen shaderGroup
1 parent 94cb188 commit 266d0eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/asset/IRayTracingPipeline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class IRayTracingPipeline : public IPipeline<PipelineLayoutType>, public IRayTra
118118
return true;
119119
};
120120

121-
if (isValidShaderIndex(shaderGroups.raygen.index, ICPUShader::E_SHADER_STAGE::ESS_RAYGEN, true))
121+
if (!isValidShaderIndex(shaderGroups.raygen.index, ICPUShader::E_SHADER_STAGE::ESS_RAYGEN, true))
122122
{
123123
return false;
124124
}

0 commit comments

Comments
 (0)