summaryrefslogtreecommitdiffstats
path: root/demos/boxes/scene.cpp
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-08-09 12:48:12 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-08-10 09:32:46 (GMT)
commitac6323c4346be5fb5b1111194b2ee98706a69ffa (patch)
treee76ede8c1caa5599de91f6717eac4f4076bfbb6b /demos/boxes/scene.cpp
parente7eed096a0c33607a7a37baaf06e5952dc9d556b (diff)
downloadQt-ac6323c4346be5fb5b1111194b2ee98706a69ffa.zip
Qt-ac6323c4346be5fb5b1111194b2ee98706a69ffa.tar.gz
Qt-ac6323c4346be5fb5b1111194b2ee98706a69ffa.tar.bz2
Replace gluPerspective with qgluPerspective.
GLU dependency was removed in commit: c67b4cac2e53ae77c4e16487838c17be85e73aa3, so we have to implement the function ourselves. Reviewed-by: kim
Diffstat (limited to 'demos/boxes/scene.cpp')
-rw-r--r--demos/boxes/scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/boxes/scene.cpp b/demos/boxes/scene.cpp
index 97953f2..d65af22 100644
--- a/demos/boxes/scene.cpp
+++ b/demos/boxes/scene.cpp
@@ -922,7 +922,7 @@ void Scene::drawBackground(QPainter *painter, const QRectF &)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_PROJECTION);
- gluPerspective(60.0, width / height, 0.01, 15.0);
+ qgluPerspective(60.0, width / height, 0.01, 15.0);
glMatrixMode(GL_MODELVIEW);