diff --git a/src/FbTk/TextureRender.cc b/src/FbTk/TextureRender.cc index 511136ea..f1addb4c 100644 --- a/src/FbTk/TextureRender.cc +++ b/src/FbTk/TextureRender.cc @@ -127,7 +127,7 @@ void invertRGB(unsigned int w, unsigned int h, FbTk::RGBA* rgba) { FbTk::RGBA* r = rgba + (w * h); for (--r; l < r; ++l, --r) { // swapping 32bits (RGBA) at ones. - std::swap(*((unsigned int*)r), *(unsigned int*)r); + std::swap(*((unsigned int*)l), *(unsigned int*)r); } }