summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsTools
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/GraphicsTools
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/GraphicsTools')
-rw-r--r--Graphics/GraphicsTools/src/TextureUploaderGL.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsTools/src/TextureUploaderGL.cpp b/Graphics/GraphicsTools/src/TextureUploaderGL.cpp
index 433ca0d2..1d8a93ae 100644
--- a/Graphics/GraphicsTools/src/TextureUploaderGL.cpp
+++ b/Graphics/GraphicsTools/src/TextureUploaderGL.cpp
@@ -269,8 +269,8 @@ void TextureUploaderGL::RenderThreadUpdate(IDeviceContext *pContext)
TextureSubResData SubResData(pBuffer->m_pStagingBuffer, SrcOffset, SrcStride);
auto MipLevelProps = GetMipLevelProperties(TexDesc, Mip);
Box DstBox;
- DstBox.MaxX = MipLevelProps.Width;
- DstBox.MaxY = MipLevelProps.Height;
+ DstBox.MaxX = MipLevelProps.LogicalWidth;
+ DstBox.MaxY = MipLevelProps.LogicalHeight;
pContext->UpdateTexture(OperationInfo.pDstTexture, OperationInfo.DstMip + Mip, OperationInfo.DstSlice + Slice, DstBox,
SubResData, RESOURCE_STATE_TRANSITION_MODE_TRANSITION, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
}