summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-22 23:15:58 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-23 08:21:41 +0200
commitf8252679bb7aa1ffb8d06d64cccba6e91c6d327b (patch)
tree4e4f0d8485f2e39e049e32304c37e3d073fa23ee /src/utils/stringutils.h
parent7a161c97f8925b4b2273ac88e5bcfe03b2fd3905 (diff)
downloadmana-f8252679bb7aa1ffb8d06d64cccba6e91c6d327b.tar.gz
mana-f8252679bb7aa1ffb8d06d64cccba6e91c6d327b.tar.bz2
mana-f8252679bb7aa1ffb8d06d64cccba6e91c6d327b.tar.xz
mana-f8252679bb7aa1ffb8d06d64cccba6e91c6d327b.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.
Diffstat (limited to 'src/utils/stringutils.h')
0 files changed, 0 insertions, 0 deletions