mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d9] Don't check IsNull for depth stencil views
We don't need to do this. Depth stencils can never be D3DFMT_NULL.
This commit is contained in:
parent
e33627cfdc
commit
64e649ae18
@ -93,7 +93,7 @@ namespace dxvk {
|
|||||||
Rc<DxvkImageView> GetDepthStencilView() {
|
Rc<DxvkImageView> GetDepthStencilView() {
|
||||||
Rc<DxvkImageView>& view = m_depthStencilView;
|
Rc<DxvkImageView>& view = m_depthStencilView;
|
||||||
|
|
||||||
if (unlikely(view == nullptr && !IsNull()))
|
if (unlikely(view == nullptr))
|
||||||
view = m_texture->CreateView(m_face, m_mipLevel, VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, false);
|
view = m_texture->CreateView(m_face, m_mipLevel, VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, false);
|
||||||
|
|
||||||
return view;
|
return view;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user