Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/main/java/net/vulkanmod/vulkan/Renderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,14 @@ public void addOnResizeCallback(Runnable runnable) {
}

public void bindGraphicsPipeline(GraphicsPipeline pipeline) {
// No active render pass, e.g. the GUI still renders while the window is
// occluded or the title bar is being dragged. Binding here would build a
// PipelineState with a null render pass and NPE in
// GraphicsPipeline.createGraphicsPipeline at state.renderPass.getId().
// There is nothing to record into without a pass, so skip the bind.
if (boundRenderPass == null)
return;
Comment on lines +640 to +641

VkCommandBuffer commandBuffer = currentCmdBuffer;

PipelineState currentState = PipelineState.getCurrentPipelineState(boundRenderPass);
Expand Down