diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-03-09 14:01:16 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-04-01 14:32:55 (GMT) |
commit | 0f95b04c91e559ca62698234dcd82445c5ee8ceb (patch) | |
tree | 47a377f0d6bc77c4be4ef3e3013e6c3aa30fd84f /src | |
parent | 570ef6dbc4526d39ef8d2b7e29ddedcfa67b061f (diff) | |
download | Qt-0f95b04c91e559ca62698234dcd82445c5ee8ceb.zip Qt-0f95b04c91e559ca62698234dcd82445c5ee8ceb.tar.gz Qt-0f95b04c91e559ca62698234dcd82445c5ee8ceb.tar.bz2 |
Fixes: Small optimizations in GL 2 paint engine...
RevBy: Tom
Diffstat (limited to 'src')
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index 9eeef1b..ce9f976 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -424,7 +424,9 @@ void QGL2PaintEngineExPrivate::updateMatrix() for (int row = 0; row < 4; ++row) { for (int col = 0; col < 4; ++col) { pmvMatrix[col][row] = 0.0; - for (int n = 0; n < 4; ++n) + + // P[row][n] is 0.0 for n < row + for (int n = row; n < 4; ++n) pmvMatrix[col][row] += P[row][n] * MV[n][col]; } } @@ -804,8 +806,6 @@ void QGL2PaintEngineEx::fill(const QVectorPath &path, const QBrush &brush) { Q_D(QGL2PaintEngineEx); - QTime startTime = QTime::currentTime(); - d->setBrush(&brush); d->fill(path); d->setBrush(&(state()->brush)); // reset back to the state's brush |