mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-30 22:24:15 +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;
|
||||
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user