From ced02ba061597e02c82b6822e81c9bc917824c75 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 25 Feb 2018 00:30:07 +0100 Subject: [PATCH] [dxvk] Fixed potential null pointer access when creating descriptor set --- src/dxvk/dxvk_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index c9fcf5b7..dd55780a 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -1509,7 +1509,7 @@ namespace dxvk { m_descInfos[i].image.imageLayout = res.imageView->imageInfo().layout; // TODO try to reduce the runtime overhead of all these comparisons - if (bindPoint == VK_PIPELINE_BIND_POINT_GRAPHICS) { + if (bindPoint == VK_PIPELINE_BIND_POINT_GRAPHICS && m_state.om.framebuffer != nullptr) { DxvkAttachment depthAttachment = m_state.om.framebuffer->renderTargets().getDepthTarget(); if (depthAttachment.view != nullptr