Browse Source

Merge pull request #81 from attilaz/master

fixed dst inside loop
Branimir Karadžić 11 năm trước cách đây
mục cha
commit
df7999c891
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/image.cpp

+ 1 - 1
src/image.cpp

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