From 96cf16c923bfdace0ffe298b7500f8e3fa8168eb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 2 Jun 2020 21:23:38 +0200 Subject: [PATCH] - fixed: Copying a texture's size must also copy the offset. --- src/common/textures/gametexture.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/textures/gametexture.h b/src/common/textures/gametexture.h index 4c717a8b9..32a2e40be 100644 --- a/src/common/textures/gametexture.h +++ b/src/common/textures/gametexture.h @@ -210,6 +210,8 @@ public: { Base->CopySize(BaseTexture->Base.get()); SetDisplaySize(BaseTexture->GetDisplayWidth(), BaseTexture->GetDisplayHeight()); + SetOffsets(0, BaseTexture->GetTexelLeftOffset(0), BaseTexture->GetTexelTopOffset(0)); + SetOffsets(1, BaseTexture->GetTexelLeftOffset(1), BaseTexture->GetTexelTopOffset(1)); } // Glowing is a pure material property that should not filter down to the actual texture objects.