summaryrefslogtreecommitdiff
path: root/vcl/opengl/gdiimpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/opengl/gdiimpl.cxx')
-rw-r--r--vcl/opengl/gdiimpl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index caecec0d4621..90922d737eb3 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -63,9 +63,8 @@ public:
virtual void Invoke() override
{
m_pImpl->doFlush();
- if (GetPriority() != TaskPriority::HIGHEST)
- SetPriority(TaskPriority::HIGHEST);
Stop();
+ SetPriority(TaskPriority::HIGHEST);
}
};