Skip to content

Commit 0608e9d

Browse files
author
kevyuu
committed
Check vertex shader existence for graphics pipeline
1 parent 2578abe commit 0608e9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/nbl/video/IGPUGraphicsPipeline.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ class IGPUGraphicsPipeline : public IGPUPipeline<asset::IGraphicsPipeline<const
6464

6565
if (!hasRequiredStages(stagePresence, cached.primitiveAssembly.primitiveType))
6666
return {};
67+
68+
if (!vertexShader.shader) return {};
69+
6770
return retval;
6871
}
6972

0 commit comments

Comments
 (0)