From 3e4c4b8a6c4280642df9c021ff2e0e553a00e27f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 19 Jan 2017 15:12:27 -0800 Subject: [PATCH] Cleanup. --- src/image.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/image.cpp b/src/image.cpp index 5ac9b80e9..61cfd413b 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -616,12 +616,12 @@ namespace bgfx // Test can we do four 4-byte pixels at the time. if (0 != (_width&0x3) || _width < 4 - || !bx::isPtrAligned(_src, 16) - || !bx::isPtrAligned(_dst, 16) ) + || !bx::isAligned(_src, 16) + || !bx::isAligned(_dst, 16) ) { BX_WARN(false, "Image swizzle is taking slow path."); - BX_WARN(bx::isPtrAligned(_src, 16), "Source %p is not 16-byte aligned.", _src); - BX_WARN(bx::isPtrAligned(_dst, 16), "Destination %p is not 16-byte aligned.", _dst); + BX_WARN(bx::isAligned(_src, 16), "Source %p is not 16-byte aligned.", _src); + BX_WARN(bx::isAligned(_dst, 16), "Destination %p is not 16-byte aligned.", _dst); BX_WARN(_width < 4, "Image width must be multiple of 4 (width %d).", _width); imageSwizzleBgra8Ref(_dst, _width, _height, _pitch, _src); return;