simple fix to remove the segfault with Qt>=6.7

This commit is contained in:
Laurent Rineau 2024-09-02 17:51:06 +02:00
parent aaede41f81
commit 93dd87c3cc
1 changed files with 0 additions and 2 deletions

View File

@ -354,7 +354,6 @@ camera is manipulated) : main drawing method. Should be overloaded. \arg
postDraw() : display of visual hints (world axis, FPS...) */ postDraw() : display of visual hints (world axis, FPS...) */
CGAL_INLINE_FUNCTION CGAL_INLINE_FUNCTION
void CGAL::QGLViewer::paintGL() { void CGAL::QGLViewer::paintGL() {
makeCurrent();
// Clears screen, set model view matrix... // Clears screen, set model view matrix...
preDraw(); preDraw();
// Used defined method. Default calls draw() // Used defined method. Default calls draw()
@ -364,7 +363,6 @@ void CGAL::QGLViewer::paintGL() {
draw(); draw();
// Add visual hints: axis, camera, grid... // Add visual hints: axis, camera, grid...
postDraw(); postDraw();
doneCurrent();
Q_EMIT drawFinished(true); Q_EMIT drawFinished(true);
} }