summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-03-09 14:01:16 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-04-01 14:32:55 (GMT)
commit0f95b04c91e559ca62698234dcd82445c5ee8ceb (patch)
tree47a377f0d6bc77c4be4ef3e3013e6c3aa30fd84f /src/opengl/gl2paintengineex
parent570ef6dbc4526d39ef8d2b7e29ddedcfa67b061f (diff)
downloadQt-0f95b04c91e559ca62698234dcd82445c5ee8ceb.zip
Qt-0f95b04c91e559ca62698234dcd82445c5ee8ceb.tar.gz
Qt-0f95b04c91e559ca62698234dcd82445c5ee8ceb.tar.bz2
Fixes: Small optimizations in GL 2 paint engine...
RevBy: Tom
Diffstat (limited to 'src/opengl/gl2paintengineex')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp6
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