diff options
author | Morten Johan Sørvig <morten.sorvig@digia.com> | 2014-03-19 11:26:30 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-20 10:36:34 +0100 |
commit | 8c91c9912f556897db4f05be1acc335ef3a5d1fb (patch) | |
tree | 31040468d7f9a399369bc4a79e38b20c11a0a9c5 /examples | |
parent | f5b552b5900d3bed72ace43c22f35c09b499bbdf (diff) |
Avoid QImage copy in toTexture()
Desktop OpenGL has GL_UNPACK_ROW_LENGTH which we
can use use to specify the image row stride.
This removes the need to call QImage::copy(). On
a retina MacbBok pro this reduces toTexture's share
of the total run time by 1-4%. (on tests/manual/
qopenglwidget/openglwidget)
Change-Id: Ia7f49d5c4ffcc347a495701bbaca6aecc2dc3433
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions