diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-01-07 15:53:28 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-01-07 15:53:28 (GMT) |
commit | 2dde31f712b5952838d867966d99565e1c7c825d (patch) | |
tree | eccd6c518a81c696cc02bc738321a3b2d3f44a64 /demos | |
parent | 7a5bca82738e6b782047e50a813972eccd928307 (diff) | |
parent | f8e08419c78e94d32273c8b039dd48dc9d5e3433 (diff) | |
download | Qt-2dde31f712b5952838d867966d99565e1c7c825d.zip Qt-2dde31f712b5952838d867966d99565e1c7c825d.tar.gz Qt-2dde31f712b5952838d867966d99565e1c7c825d.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2:
Reset the GL stencil mask, op and function in resetGLState().
Fix performance regression in _q_polishItems.
Fixed indentation and typo.
Fixed bug in boxes demo occuring with certain OpenGL drivers.
Remove unnecessary call to QWidget::setAttribute().
Avoid a deep copy of QImage::bits() in the png writer
Diffstat (limited to 'demos')
-rw-r--r-- | demos/boxes/scene.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/demos/boxes/scene.cpp b/demos/boxes/scene.cpp index 452f4ef..9b36b81 100644 --- a/demos/boxes/scene.cpp +++ b/demos/boxes/scene.cpp @@ -653,7 +653,8 @@ void Scene::initGL() static void loadMatrix(const QMatrix4x4& m) { - GLfloat mat[16]; + // static to prevent glLoadMatrixf to fail on certain drivers + static GLfloat mat[16]; const qreal *data = m.constData(); for (int index = 0; index < 16; ++index) mat[index] = data[index]; @@ -662,7 +663,8 @@ static void loadMatrix(const QMatrix4x4& m) static void multMatrix(const QMatrix4x4& m) { - GLfloat mat[16]; + // static to prevent glMultMatrixf to fail on certain drivers + static GLfloat mat[16]; const qreal *data = m.constData(); for (int index = 0; index < 16; ++index) mat[index] = data[index]; |