mirror of https://github.com/CGAL/cgal
Merge pull request #766 from maxGimeno/LCC_Demo-MSAA_removal-GF
Removal of the MSAA in LCC Conflicts: GraphicsView/include/CGAL/Qt/CreateOpenGLContext.h Linear_cell_complex/demo/Linear_cell_complex/Viewer.cpp
This commit is contained in:
commit
8b22743b06
|
|
@ -34,19 +34,6 @@ inline QGLContext* createOpenGLContext()
|
|||
result->create();
|
||||
return result;
|
||||
}
|
||||
|
||||
inline QGLContext* createOpenGLMSAAContext()
|
||||
{
|
||||
QOpenGLContext *context = new QOpenGLContext();
|
||||
QSurfaceFormat format;
|
||||
format.setVersion(2,1);
|
||||
format.setProfile(QSurfaceFormat::CompatibilityProfile);
|
||||
format.setSamples(16);
|
||||
context->setFormat(format);
|
||||
QGLContext *result = QGLContext::fromOpenGLContext(context);
|
||||
result->create();
|
||||
return result;
|
||||
}
|
||||
} // namespace Qt
|
||||
} // namespace CGAL
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
#include <QDebug>
|
||||
|
||||
Viewer::Viewer(QWidget* parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLMSAAContext(),parent), wireframe(false),
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent), wireframe(false),
|
||||
flatShading(true), edges(true), vertices(true),
|
||||
m_previous_scene_empty(true), are_buffers_initialized(false)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue