mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 07:12:36 +00:00
- fix depthstencil attachment not being attached when only stencil tests were enabled
This commit is contained in:
parent
99c3d72aa0
commit
f04522c397
1 changed files with 2 additions and 2 deletions
|
@ -171,11 +171,11 @@ void VkRenderPassSetup::CreateRenderPass(const VkRenderPassKey &key)
|
|||
{
|
||||
RenderPassBuilder builder;
|
||||
builder.addRgba16fAttachment(false, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);
|
||||
if (key.DepthTest || key.DepthWrite)
|
||||
if (key.DepthTest || key.DepthWrite || key.StencilTest)
|
||||
builder.addDepthStencilAttachment(false, VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL);
|
||||
builder.addSubpass();
|
||||
builder.addSubpassColorAttachmentRef(0, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);
|
||||
if (key.DepthTest || key.DepthWrite)
|
||||
if (key.DepthTest || key.DepthWrite || key.StencilTest)
|
||||
{
|
||||
builder.addSubpassDepthStencilAttachmentRef(1, VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL);
|
||||
builder.addExternalSubpassDependency(
|
||||
|
|
Loading…
Reference in a new issue