summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsTools
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsTools')
-rw-r--r--Graphics/GraphicsTools/src/TextureUploaderGL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsTools/src/TextureUploaderGL.cpp b/Graphics/GraphicsTools/src/TextureUploaderGL.cpp
index e4503013..06c5dfc7 100644
--- a/Graphics/GraphicsTools/src/TextureUploaderGL.cpp
+++ b/Graphics/GraphicsTools/src/TextureUploaderGL.cpp
@@ -201,7 +201,7 @@ namespace Diligent
case InternalData::PendingBufferOperation::Copy:
{
pContext->UnmapBuffer(pBuffer->m_pStagingBuffer, MAP_WRITE);
- TextureSubResData SubResData(pBuffer->m_pStagingBuffer, static_cast<Uint32>(pBuffer->GetRowStride()));
+ TextureSubResData SubResData(pBuffer->m_pStagingBuffer, 0, static_cast<Uint32>(pBuffer->GetRowStride()));
Box DstBox;
const auto &TexDesc = OperationInfo.pDstTexture->GetDesc();
DstBox.MaxX = TexDesc.Width;