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.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index d01d66b85f23..73804c7e39e2 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -47,7 +47,8 @@ public:
: Idle( "gl idle swap" )
, m_pImpl( pImpl )
{
- SetPriority( SchedulerPriority::HIGHEST );
+ // We don't want to be swapping before we've painted.
+ SetPriority( SchedulerPriority::POST_PAINT );
}
virtual ~OpenGLFlushIdle()
{
@@ -55,6 +56,7 @@ public:
virtual void Invoke() override
{
m_pImpl->doFlush();
+ SetPriority( SchedulerPriority::HIGHEST );
Stop();
}
};