Przeglądaj źródła

fixed dst inside loop

This fixes examples 08,10 and 11 on iOS.
attilaz 11 lat temu
rodzic
commit
ec0f407469
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/image.cpp

+ 1 - 1
src/image.cpp

@@ -348,7 +348,7 @@ namespace bgfx
 		const uint8_t* next = src + _srcPitch;
 		const uint8_t* next = src + _srcPitch;
 		uint8_t* dst = (uint8_t*)_dst;
 		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);
 			memcpy(dst, src, pitch);
 		}
 		}