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/GraphicsTools/src/TextureUploaderGL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsTools') 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); } -- cgit v1.2.3