diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-09-14 09:19:41 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-09-14 09:20:31 (GMT) |
commit | 75426b7cd200a502d3a0b821c49ef3f1ea3029d2 (patch) | |
tree | da27844333365a96fcaf879a43c4e4beec8c4bf3 /src/opengl/qpixmapdata_gl.cpp | |
parent | 24334c206e0611c2a8c5ef7265b96465c9459939 (diff) | |
download | Qt-75426b7cd200a502d3a0b821c49ef3f1ea3029d2.zip Qt-75426b7cd200a502d3a0b821c49ef3f1ea3029d2.tar.gz Qt-75426b7cd200a502d3a0b821c49ef3f1ea3029d2.tar.bz2 |
Some small optimizations to gl2 engine.
Use qpen_ and qbrush_ accessors for slightly better performance
and avoid calling for the same value again and again. Secondly,
the engine doesn't use its pen and brush states so there is
no point in maintaining them, so don't reset old brush all the
time.
Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/qpixmapdata_gl.cpp')
0 files changed, 0 insertions, 0 deletions