From d77026d4d7ac937d5c42430b603b12c1427e0469 Mon Sep 17 00:00:00 2001 From: fo76utils <87907510+fo76utils@users.noreply.github.com> Date: Tue, 9 Apr 2024 23:02:33 +0200 Subject: [PATCH] Revert "Work around Linux double buffering issue" This reverts commit 156f9ad83b863dd5dffda36cc2848deddd0bb82a. --- src/glview.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/glview.cpp b/src/glview.cpp index 02247c19..98339660 100644 --- a/src/glview.cpp +++ b/src/glview.cpp @@ -169,9 +169,7 @@ GLView::GLView( const QGLFormat & format, QWidget * p, const QGLWidget * shareWi // Fixes bug with QGraphicsView and double buffering // Input becomes sluggish and CPU usage doubles when putting GLView // inside a QGraphicsView. -#ifndef Q_OS_LINUX setAutoBufferSwap( false ); -#endif // Make the context current on this window makeCurrent(); @@ -771,9 +769,7 @@ void GLView::paintGL() emit paintUpdate(); // Manually handle the buffer swap -#ifndef Q_OS_LINUX swapBuffers(); -#endif #ifdef USE_GL_QPAINTER painter.end();