mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 19:24:12 +01:00
[dxvk] Fixed potential null pointer access when creating descriptor set
This commit is contained in:
parent
ce020e5bc9
commit
ced02ba061
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user