Skip to content

Commit

Permalink
Merge pull request #43272 from lawnjelly/fxaa_deband_redraw
Browse files Browse the repository at this point in the history
Fix editor constant redraw from fxaa and debanding.
  • Loading branch information
akien-mga authored Nov 2, 2020
2 parents 5b94d97 + fed764b commit df6d845
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scene/main/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3020,6 +3020,9 @@ Viewport::MSAA Viewport::get_msaa() const {

void Viewport::set_use_fxaa(bool p_fxaa) {

if (p_fxaa == use_fxaa) {
return;
}
use_fxaa = p_fxaa;
VS::get_singleton()->viewport_set_use_fxaa(viewport, use_fxaa);
}
Expand All @@ -3031,6 +3034,9 @@ bool Viewport::get_use_fxaa() const {

void Viewport::set_use_debanding(bool p_debanding) {

if (p_debanding == use_debanding) {
return;
}
use_debanding = p_debanding;
VS::get_singleton()->viewport_set_use_debanding(viewport, use_debanding);
}
Expand Down

0 comments on commit df6d845

Please sign in to comment.