diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index e847cb4ec324..caecec0d4621 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -63,7 +63,8 @@ public: virtual void Invoke() override { m_pImpl->doFlush(); - SetPriority( TaskPriority::HIGHEST ); + if (GetPriority() != TaskPriority::HIGHEST) + SetPriority(TaskPriority::HIGHEST); Stop(); } };