summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-08-07 02:56:24 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-08-07 02:56:24 +0000
commit87a8af6362b241f99fa578b952b364acb42c755c (patch)
tree8f59ad5ae054d9fa64551dd6d29cb6d8b8c67938 /Graphics/GraphicsEngine
parentMoved Troubleshooting.md to main repo (diff)
downloadDiligentCore-87a8af6362b241f99fa578b952b364acb42c755c.tar.gz
DiligentCore-87a8af6362b241f99fa578b952b364acb42c755c.zip
Fixed issue with logical vs storage texture size for block-compressed formats
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/src/Texture.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}