Viewport: Fix viewport updates being applied to shaded windows

This commit is contained in:
Jonathan G Rennison
2020-03-28 23:54:01 +00:00
parent c5c24a3165
commit 0a6a38886d
2 changed files with 3 additions and 3 deletions

View File

@@ -1559,7 +1559,7 @@ void DrawDirtyBlocks()
w->flags &= ~WF_WIDGETS_DIRTY;
}
if (w->viewport != nullptr) {
if (w->viewport != nullptr && !w->IsShaded()) {
ViewPort *vp = w->viewport;
if (vp->is_drawn) {
vp->ClearDirty();