mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fix: gl_PointSize is required in Vulkan when drawing points
- fix: add depthstencil attachment when stencil is active while depth is not
This commit is contained in:
parent
923fb5c127
commit
56afcd210b
2 changed files with 3 additions and 1 deletions
|
@ -312,7 +312,7 @@ void VkRenderPassSetup::CreateFramebuffer(const VkRenderPassKey &key)
|
||||||
builder.setRenderPass(RenderPass.get());
|
builder.setRenderPass(RenderPass.get());
|
||||||
builder.setSize(SCREENWIDTH, SCREENHEIGHT);
|
builder.setSize(SCREENWIDTH, SCREENHEIGHT);
|
||||||
builder.addAttachment(fb->GetRenderPassManager()->SceneColorView.get());
|
builder.addAttachment(fb->GetRenderPassManager()->SceneColorView.get());
|
||||||
if (key.DepthTest || key.DepthWrite)
|
if (key.DepthTest || key.DepthWrite || key.StencilTest)
|
||||||
builder.addAttachment(fb->GetRenderPassManager()->SceneDepthStencilView.get());
|
builder.addAttachment(fb->GetRenderPassManager()->SceneDepthStencilView.get());
|
||||||
Framebuffer = builder.create(GetVulkanFrameBuffer()->device);
|
Framebuffer = builder.create(GetVulkanFrameBuffer()->device);
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,4 +122,6 @@ void main()
|
||||||
gl_ClipDistance[3] = 1;
|
gl_ClipDistance[3] = 1;
|
||||||
gl_ClipDistance[4] = 1;
|
gl_ClipDistance[4] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gl_PointSize = 1.0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue