diff options
Diffstat (limited to 'examples/opengl/hellogl/glwidget.cpp')
-rw-r--r-- | examples/opengl/hellogl/glwidget.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/opengl/hellogl/glwidget.cpp b/examples/opengl/hellogl/glwidget.cpp index b0c3ba4..282f21f 100644 --- a/examples/opengl/hellogl/glwidget.cpp +++ b/examples/opengl/hellogl/glwidget.cpp @@ -47,9 +47,13 @@ #include "glwidget.h" #include "qtlogo.h" +#ifndef GL_MULTISAMPLE +#define GL_MULTISAMPLE 0x809D +#endif + //! [0] GLWidget::GLWidget(QWidget *parent) - : QGLWidget(parent) + : QGLWidget(QGLFormat(QGL::SampleBuffers), parent) { logo = 0; xRot = 0; |