From 1cab71734c63ab6bb8821cec43cf53c89ab19608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 29 Nov 2020 21:17:50 -0800 Subject: [PATCH] Cleanup. --- src/bgfx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 4f4ecb6f9..34ac94587 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -3927,9 +3927,9 @@ namespace bgfx dstHeight = bx::min(dstHeight, _dstY + _height) - _dstY; dstDepth = bx::min(dstDepth, _dstZ + _depth ) - _dstZ; - uint16_t width = uint16_t(bx::min(srcWidth, dstWidth) ); - uint16_t height = uint16_t(bx::min(srcHeight, dstHeight) ); - uint16_t depth = uint16_t(bx::min(srcDepth, dstDepth) ); + const uint16_t width = uint16_t(bx::min(srcWidth, dstWidth ) ); + const uint16_t height = uint16_t(bx::min(srcHeight, dstHeight) ); + const uint16_t depth = uint16_t(bx::min(srcDepth, dstDepth ) ); BGFX_ENCODER(blit(_id, _dst, _dstMip, _dstX, _dstY, _dstZ, _src, _srcMip, _srcX, _srcY, _srcZ, width, height, depth) ); }