From ec0f407469ef5b777db78fc195589bdb0a6fc130 Mon Sep 17 00:00:00 2001 From: attilaz Date: Mon, 31 Mar 2014 23:01:46 +0200 Subject: [PATCH] fixed dst inside loop This fixes examples 08,10 and 11 on iOS. --- src/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image.cpp b/src/image.cpp index 6968bd401..068dc1f27 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -348,7 +348,7 @@ namespace bgfx const uint8_t* next = src + _srcPitch; uint8_t* dst = (uint8_t*)_dst; - for (uint32_t yy = 0; yy < _height; ++yy, src = next, next += _srcPitch) + for (uint32_t yy = 0; yy < _height; ++yy, src = next, next += _srcPitch, dst += pitch) { memcpy(dst, src, pitch); }