From c6d2ec67384d5b0a4f9108277888d4aaf0e2f6d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Mon, 21 Sep 2009 15:01:26 +0200 Subject: 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 --- examples/opengl/hellogl/glwidget.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v0.12