Skip to content

Commit 60fa0f9

Browse files
committed
Different rt_ssao_temp creation for HDAO Ultra and SSAO Blur
1 parent bc9171d commit 60fa0f9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Layers/xrRenderPC_R4/r4_rendertarget.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,19 +668,18 @@ CRenderTarget::CRenderTarget()
668668
if (ssao_blur_on || ssao_hdao_ultra)
669669
{
670670
const auto w = Device.dwWidth, h = Device.dwHeight;
671-
rt_ssao_temp.create(r2_RT_ssao_temp, w, h, D3DFMT_G16R16F, SampleCount, true);
672671

673672
if (ssao_hdao_ultra)
674673
{
675-
//rt_ssao_temp.create(r2_RT_ssao_temp, w, h, D3DFMT_R16F, 1, true); // original line; changed and moved upper
674+
rt_ssao_temp.create(r2_RT_ssao_temp, w, h, D3DFMT_R16F, 1, true); // original line; changed and moved upper
676675
s_hdao_cs.create(b_hdao_cs, "r2\\ssao");
677676
if (RImplementation.o.dx10_msaa)
678677
s_hdao_cs_msaa.create(b_hdao_msaa_cs, "r2\\ssao");
679678
}
680679

681680
else if (ssao_blur_on)
682681
{
683-
//rt_ssao_temp.create(r2_RT_ssao_temp, w, h, D3DFMT_G16R16F, SampleCount); // moved upper
682+
rt_ssao_temp.create(r2_RT_ssao_temp, w, h, D3DFMT_G16R16F, SampleCount); // moved upper
684683
s_ssao.create(b_ssao, "r2\\ssao");
685684

686685
if (RImplementation.o.dx10_msaa)

0 commit comments

Comments
 (0)