Skip to content

Commit

Permalink
Revert "Work around Linux double buffering issue"
Browse files Browse the repository at this point in the history
This reverts commit 156f9ad.
  • Loading branch information
fo76utils committed Apr 9, 2024
1 parent 3772dd9 commit d77026d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/glview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit d77026d

Please sign in to comment.