From 87a8af6362b241f99fa578b952b364acb42c755c Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 6 Aug 2019 19:56:24 -0700 Subject: Fixed issue with logical vs storage texture size for block-compressed formats --- Graphics/GraphicsEngine/src/Texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/src/Texture.cpp b/Graphics/GraphicsEngine/src/Texture.cpp index 57b58279..dece6a66 100644 --- a/Graphics/GraphicsEngine/src/Texture.cpp +++ b/Graphics/GraphicsEngine/src/Texture.cpp @@ -239,8 +239,8 @@ void ValidateCopyTextureParams(const CopyTextureAttribs& CopyAttribs ) if( pSrcBox == nullptr ) { auto MipLevelAttribs = GetMipLevelProperties(SrcTexDesc, CopyAttribs.SrcMipLevel); - SrcBox.MaxX = MipLevelAttribs.Width; - SrcBox.MaxY = MipLevelAttribs.Height; + SrcBox.MaxX = MipLevelAttribs.LogicalWidth; + SrcBox.MaxY = MipLevelAttribs.LogicalHeight; SrcBox.MaxZ = MipLevelAttribs.Depth; pSrcBox = &SrcBox; } -- cgit v1.2.3