Skip to content

Commit

Permalink
fix: fix clearing the wrong ssao buffer (doodlum#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentalimbed authored Dec 10, 2024
1 parent f950450 commit b965948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Features/ScreenSpaceGI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ void ScreenSpaceGI::DrawSSGI(Texture2D* srcPrevAmbient)

if (!(settings.Enabled && ShadersOK())) {
FLOAT clr[4] = { 0.f, 0.f, 0.f, 0.f };
context->ClearUnorderedAccessViewFloat(texAo[1]->uav.get(), clr);
context->ClearUnorderedAccessViewFloat(texAo[outputAoIdx]->uav.get(), clr);
context->ClearUnorderedAccessViewFloat(texIlY[outputIlIdx]->uav.get(), clr);
context->ClearUnorderedAccessViewFloat(texIlCoCg[outputIlIdx]->uav.get(), clr);
return;
Expand Down

0 comments on commit b965948

Please sign in to comment.