mirror of https://github.com/CGAL/cgal
simple fix to remove the segfault with Qt>=6.7
This commit is contained in:
parent
aaede41f81
commit
93dd87c3cc
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue