Skip to content

Commit

Permalink
- fixed: Copying a texture's size must also copy the offset.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jun 2, 2020
1 parent f91958e commit 96cf16c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/textures/gametexture.h
Expand Up @@ -210,6 +210,8 @@ class FGameTexture
{
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.
Expand Down

0 comments on commit 96cf16c

Please sign in to comment.