diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-07-22 23:15:58 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-08-05 17:15:56 +0200 |
commit | 1fe16bdda5fa0d7112f4568e7bcd892d01c197b9 (patch) | |
tree | 2c5200f374a43ceb01f55b3954697b1cd7b5f9bc /src/gui/widgets | |
parent | 020ddd64a48229a8d5e9dcccf4fe1fe71c840450 (diff) | |
download | mana-1fe16bdda5fa0d7112f4568e7bcd892d01c197b9.tar.gz mana-1fe16bdda5fa0d7112f4568e7bcd892d01c197b9.tar.bz2 mana-1fe16bdda5fa0d7112f4568e7bcd892d01c197b9.tar.xz mana-1fe16bdda5fa0d7112f4568e7bcd892d01c197b9.zip |
Avoid copying surfaces unnecessarily for upload to texture
When uploading an SDL surface to an OpenGL texture, it was always making
a copy that had the desired size and pixel format. Now this copy is no
longer being made when the existing surface already has the target size
and pixel format.
In fact most images are already in 32-bit RGBA format after loading them.
Reviewed-by: Erik Schilling
Diffstat (limited to 'src/gui/widgets')
0 files changed, 0 insertions, 0 deletions