Skip to content

Commit

Permalink
Fix VK_NULL_HANDLE descriptor crash
Browse files Browse the repository at this point in the history
  • Loading branch information
thr3343 committed Jul 24, 2024
1 parent d1275df commit 9e9dd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/vulkanmod/vulkan/Renderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ public void uploadAndBindUBOs(Pipeline pipeline) {
pipeline.bindDescriptorSets(commandBuffer, currentFrame, hasBindless ? pipeline.isBindless() ? drawer.getUniformBuffer() : drawer.getPostEffectUniformBuffers() : drawer.getUniformBuffer());
pipeline.pushConstants(commandBuffer);

if (boundPipelineLayout != pipelineLayout0) DescriptorManager.BindAllSets(currentFrame, commandBuffer);
if (hasBindless && boundPipelineLayout != pipelineLayout0) DescriptorManager.BindAllSets(currentFrame, commandBuffer);
this.boundPipelineLayout = pipeline.isBindless() ? this.pipelineLayout0 : pipeline.getLayout();

}
Expand Down

0 comments on commit 9e9dd90

Please sign in to comment.