From ec161823e5cfefb74f22f6f6de5d53c5a88296ad Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 21 Mar 2018 15:09:34 +0100 Subject: [PATCH] [dxvk] Check whether renderpass is null before creating pipeline --- src/dxvk/dxvk_graphics.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dxvk/dxvk_graphics.cpp b/src/dxvk/dxvk_graphics.cpp index 1c882669f..92c714d7f 100644 --- a/src/dxvk/dxvk_graphics.cpp +++ b/src/dxvk/dxvk_graphics.cpp @@ -273,6 +273,10 @@ namespace dxvk { bool DxvkGraphicsPipeline::validatePipelineState( const DxvkGraphicsPipelineStateInfo& state) const { + // Make sure that we have an active render pass + if (state.omRenderPass == VK_NULL_HANDLE) + return false; + // Validate vertex input - each input slot consumed by the // vertex shader must be provided by the input layout. uint32_t providedVertexInputs = 0;