diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-08-07 02:56:24 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-08-07 02:56:24 +0000 |
| commit | 87a8af6362b241f99fa578b952b364acb42c755c (patch) | |
| tree | 8f59ad5ae054d9fa64551dd6d29cb6d8b8c67938 /Graphics/GraphicsEngine | |
| parent | Moved Troubleshooting.md to main repo (diff) | |
| download | DiligentCore-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.cpp | 4 |
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; } |
