mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed: Copying a texture's size must also copy the offset.
This commit is contained in:
parent
f91958e88d
commit
96cf16c923
1 changed files with 2 additions and 0 deletions
|
@ -210,6 +210,8 @@ public:
|
||||||
{
|
{
|
||||||
Base->CopySize(BaseTexture->Base.get());
|
Base->CopySize(BaseTexture->Base.get());
|
||||||
SetDisplaySize(BaseTexture->GetDisplayWidth(), BaseTexture->GetDisplayHeight());
|
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.
|
// Glowing is a pure material property that should not filter down to the actual texture objects.
|
||||||
|
|
Loading…
Reference in a new issue