Explorar o código

Merge branch 'master' of github.com:bkaradzic/bimg

Branimir Karadžić %!s(int64=8) %!d(string=hai) anos
pai
achega
224aa80d10
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/image_encode.cpp

+ 2 - 2
src/image_encode.cpp

@@ -126,11 +126,11 @@ namespace bimg
 				break;
 				break;
 
 
 			case TextureFormat::BGRA8:
 			case TextureFormat::BGRA8:
-				imageSwizzleBgra8(dst, _width, _height, srcPitch, src);
+				imageSwizzleBgra8(dst, dstPitch, _width, _height, src, srcPitch);
 				break;
 				break;
 
 
 			case TextureFormat::RGBA8:
 			case TextureFormat::RGBA8:
-				bx::memCopy(dst, src, srcSlice);
+				bx::memCopy(_dst, _src, srcPitch, _height, srcPitch, dstPitch);
 				break;
 				break;
 
 
 			default:
 			default: