SFML/src/SFML
Fytch c678cae498 fixed sf::Image::create
Discussion thread: http://en.sfml-dev.org/forums/index.php?topic=20875.0
Basically, the issue with sf::Image::create was, that it would either
occupy space, it doesn't need, because std::vector::resize doesn't
actually shrink the vector, or reallocate in an inefficient way by
needlessly copying the whole old image over. Neither did it grant strong
exception safety guarantee because it changed the non-throwing members
(m_size) prior to doing the critical stuff (reallocating) which may
throw. Changing the order and using a temporary
(create-temporary-and-swap idiom; see http://www.gotw.ca/gotw/059.htm)
fixes both of these problems.
2017-01-23 16:52:21 +01:00
..
Audio Addressed Seeking Quirks in FLAC Reader 2016-11-11 02:24:05 -08:00
Graphics fixed sf::Image::create 2017-01-23 16:52:21 +01:00
Main Update copyright dates 2016-08-05 16:20:39 +02:00
Network Update copyright dates 2016-08-05 16:20:39 +02:00
System Windows: Removed thread affinity changes in sf::Clock 2017-01-23 16:52:11 +01:00
Window Removed internal OpenGL contexts, reduced the number of temporary contexts that get created during runtime. 2016-10-06 08:28:51 +02:00
Android.mk Android: Fixed building and linking 2015-03-04 09:36:19 +01:00
CMakeLists.txt Added support for VS 2015. 2015-09-30 08:32:30 +02:00