From 27286d7e9c860a3ff1f452f38db660aeacf7dc88 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 13 Jan 2019 20:50:37 -0800 Subject: Fixed couple of issues in HLSL2GLSLConverterImpl and TextureUploaderGL --- Graphics/GraphicsTools/src/TextureUploaderGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Graphics/GraphicsTools') 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(pBuffer->GetRowStride())); + TextureSubResData SubResData(pBuffer->m_pStagingBuffer, 0, static_cast(pBuffer->GetRowStride())); Box DstBox; const auto &TexDesc = OperationInfo.pDstTexture->GetDesc(); DstBox.MaxX = TexDesc.Width; -- cgit v1.2.3