summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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