mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
fixed dst inside loop
This fixes examples 08,10 and 11 on iOS.
This commit is contained in:
parent
e5c7bf4789
commit
ec0f407469
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue