diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2011-05-25 17:03:59 +0200 |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-05-25 18:55:12 +0200 |
commit | dea9ca8b7a4166e1c3d3fc374621ad02c1220d3a (patch) | |
tree | d2491b15f4b2e9e4b66b9630f856d135f3f34d91 /examples/opengl/cube/mainwidget.cpp | |
parent | 635af8d700087b24bd8c212b14cf644e0f71a6fc (diff) |
Fix for compiling and running cube example on Windows.
Change-Id: I0bf933fe81e332c03a81874cb371fa423634621b
Reviewed-on: http://codereview.qt.nokia.com/125
Reviewed-by: David Boddie
Diffstat (limited to 'examples/opengl/cube/mainwidget.cpp')
-rw-r--r-- | examples/opengl/cube/mainwidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/opengl/cube/mainwidget.cpp b/examples/opengl/cube/mainwidget.cpp index bead5f79ed..682ce5c9e7 100644 --- a/examples/opengl/cube/mainwidget.cpp +++ b/examples/opengl/cube/mainwidget.cpp @@ -78,6 +78,8 @@ void MainWidget::timerEvent(QTimerEvent *e) void MainWidget::initializeGL() { + initializeGLFunctions(); + qglClearColor(Qt::black); qDebug() << "Initializing shaders..."; |