mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 06:12:19 +00:00
- fixed: The Heretic sky height hack needs to be stored in the already created texture object as well.
This commit is contained in:
parent
c471be4409
commit
bcff04e76f
2 changed files with 5 additions and 6 deletions
|
@ -797,6 +797,7 @@ void FMultipatchTextureBuilder::CheckForHacks(BuildInfo &buildinfo)
|
|||
buildinfo.Height == 128)
|
||||
{
|
||||
buildinfo.Height = 200;
|
||||
buildinfo.tex->SetSize(buildinfo.tex->Width, 200);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -924,6 +925,7 @@ void FMultipatchTextureBuilder::ResolveAllPatches()
|
|||
while (BuiltTextures.Size() > 0)
|
||||
{
|
||||
bool donesomething = false;
|
||||
|
||||
for (unsigned i = 0; i < BuiltTextures.Size(); i++)
|
||||
{
|
||||
auto &buildinfo = BuiltTextures[i];
|
||||
|
|
|
@ -432,14 +432,11 @@ protected:
|
|||
float shaderspeed = 1.f;
|
||||
int shaderindex = 0;
|
||||
|
||||
// This is only legal for the null texture!
|
||||
// This is only used for the null texture and for Heretic's skies.
|
||||
void SetSize(int w, int h)
|
||||
{
|
||||
if (UseType == ETextureType::Null)
|
||||
{
|
||||
Width = w;
|
||||
Height = h;
|
||||
}
|
||||
Width = w;
|
||||
Height = h;
|
||||
}
|
||||
|
||||
void SetSpeed(float fac) { shaderspeed = fac; }
|
||||
|
|
Loading…
Reference in a new issue