diff --git a/src/image_encode.cpp b/src/image_encode.cpp index 4109840..ae1cec4 100644 --- a/src/image_encode.cpp +++ b/src/image_encode.cpp @@ -126,11 +126,11 @@ namespace bimg break; case TextureFormat::BGRA8: - imageSwizzleBgra8(dst, _width, _height, srcPitch, src); + imageSwizzleBgra8(dst, dstPitch, _width, _height, src, srcPitch); break; case TextureFormat::RGBA8: - bx::memCopy(dst, src, srcSlice); + bx::memCopy(_dst, _src, srcPitch, _height, srcPitch, dstPitch); break; default: