1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-29 17:52:18 +01:00

[dxvk] Check whether renderpass is null before creating pipeline

This commit is contained in:
Philip Rebohle 2018-03-21 15:09:34 +01:00
parent 6f6e12a329
commit ec161823e5
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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;