Skip to content

Commit b2188dc

Browse files
author
kevyuu
committed
Fix setRayTracingStackSize validation.
1 parent 1a4d0e6 commit b2188dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/video/IGPUCommandBuffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,7 @@ bool IGPUCommandBuffer::setRayTracingPipelineStackSize(uint32_t pipelineStackSiz
18991899
{
19001900
if (!checkStateBeforeRecording(queue_flags_t::COMPUTE_BIT,RENDERPASS_SCOPE::OUTSIDE))
19011901
return false;
1902-
if (m_boundRayTracingPipeline != nullptr && m_boundRayTracingPipeline->getCachedCreationParams().dynamicStackSize)
1902+
if (m_boundRayTracingPipeline->getCachedCreationParams().dynamicStackSize)
19031903
{
19041904
NBL_LOG_ERROR("Cannot set dynamic state when state is not mark as dynamic on bound pipeline!");
19051905
}

0 commit comments

Comments
 (0)