diff --git a/src/pulsaranimationwidget.cpp b/src/pulsaranimationwidget.cpp index 3818c59ab3396c079c7174d17cec6956bfe677c1..291465a232de345d831651975f9f471bf6a08b67 100644 --- a/src/pulsaranimationwidget.cpp +++ b/src/pulsaranimationwidget.cpp @@ -23,7 +23,7 @@ const float PulsarAnimationWidget::deg2rad = PI/180.0f; PulsarAnimationWidget::PulsarAnimationWidget(QWidget *parent) : - QGLWidget(QGLFormat(QGL::AlphaChannel), parent), + QGLWidget(QGLFormat(QGL::AlphaChannel | QGL::SampleBuffers), parent), m_frameTimer() { if(!format().rgba()) { @@ -32,6 +32,9 @@ PulsarAnimationWidget::PulsarAnimationWidget(QWidget *parent) : if(!format().alpha()) { qWarning("Sorry, no alpha channel support..."); } + if(!format().sampleBuffers()) { + qWarning("Sorry, no multisampling support..."); + } connect(&m_frameTimer, SIGNAL(timeout()), this, SLOT(updateFrame()));