Merge pull request #81 from attilaz/master

fixed dst inside loop
This commit is contained in:
Branimir Karadžić 2014-03-31 14:19:04 -07:00
commit df7999c891

View file

@ -352,7 +352,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);
}