Skip to content

Commit

Permalink
Different rt_ssao_temp creation for HDAO Ultra and SSAO Blur
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed May 1, 2018
1 parent bc9171d commit 60fa0f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Layers/xrRenderPC_R4/r4_rendertarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,19 +668,18 @@ CRenderTarget::CRenderTarget()
if (ssao_blur_on || ssao_hdao_ultra)
{
const auto w = Device.dwWidth, h = Device.dwHeight;
rt_ssao_temp.create(r2_RT_ssao_temp, w, h, D3DFMT_G16R16F, SampleCount, true);

if (ssao_hdao_ultra)
{
//rt_ssao_temp.create(r2_RT_ssao_temp, w, h, D3DFMT_R16F, 1, true); // original line; changed and moved upper
rt_ssao_temp.create(r2_RT_ssao_temp, w, h, D3DFMT_R16F, 1, true); // original line; changed and moved upper
s_hdao_cs.create(b_hdao_cs, "r2\\ssao");
if (RImplementation.o.dx10_msaa)
s_hdao_cs_msaa.create(b_hdao_msaa_cs, "r2\\ssao");
}

else if (ssao_blur_on)
{
//rt_ssao_temp.create(r2_RT_ssao_temp, w, h, D3DFMT_G16R16F, SampleCount); // moved upper
rt_ssao_temp.create(r2_RT_ssao_temp, w, h, D3DFMT_G16R16F, SampleCount); // moved upper
s_ssao.create(b_ssao, "r2\\ssao");

if (RImplementation.o.dx10_msaa)
Expand Down

0 comments on commit 60fa0f9

Please sign in to comment.