diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-09-21 13:01:26 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-09-21 14:37:48 (GMT) |
commit | c6d2ec67384d5b0a4f9108277888d4aaf0e2f6d2 (patch) | |
tree | 0f2f53e30d81ece164c82203b69933bc21ea4e59 /examples/opengl | |
parent | 01383e6fde102ebeff5f87a90142c6d1cdb44d94 (diff) | |
download | Qt-c6d2ec67384d5b0a4f9108277888d4aaf0e2f6d2.zip Qt-c6d2ec67384d5b0a4f9108277888d4aaf0e2f6d2.tar.gz Qt-c6d2ec67384d5b0a4f9108277888d4aaf0e2f6d2.tar.bz2 |
Made hellogl example compile when GL_MULTISAMPLE is not defined.
Also let the GL widget have sample buffers, otherwise using
GL_MULTISAMPLE won't help much.
Reviewed-by: Trond
Diffstat (limited to 'examples/opengl')
-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; |