- fixed: Copying a texture's size must also copy the offset.

This commit is contained in:
Christoph Oelckers 2020-06-02 21:23:38 +02:00
parent f91958e88d
commit 96cf16c923
1 changed files with 2 additions and 0 deletions

View File

@ -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.