1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-11 01:24:12 +01:00

[dxvk] Fixed potential null pointer access when creating descriptor set

This commit is contained in:
Philip Rebohle 2018-02-25 00:30:07 +01:00
parent ce020e5bc9
commit ced02ba061
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -1509,7 +1509,7 @@ namespace dxvk {
m_descInfos[i].image.imageLayout = res.imageView->imageInfo().layout; m_descInfos[i].image.imageLayout = res.imageView->imageInfo().layout;
// TODO try to reduce the runtime overhead of all these comparisons // 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(); DxvkAttachment depthAttachment = m_state.om.framebuffer->renderTargets().getDepthTarget();
if (depthAttachment.view != nullptr if (depthAttachment.view != nullptr