Let FSkyboxTexture map to the last defined regular texture of the same name instead of its first face
This is normally a better fallback for the software renderer.
This commit is contained in:
parent
0d07fb2550
commit
91bb7c0641
3 changed files with 32 additions and 17 deletions
|
|
@ -102,7 +102,10 @@ static void ParseVavoomSkybox()
|
|||
sc.ScriptError("%s: Skybox definition requires 6 faces", sb->GetName().GetChars());
|
||||
}
|
||||
sb->SetSize();
|
||||
if (!error) TexMan.AddTexture(sb);
|
||||
if (!error)
|
||||
{
|
||||
TexMan.AddTexture(sb);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -964,8 +967,7 @@ class GLDefsParser
|
|||
|
||||
sc.MustGetString();
|
||||
|
||||
FSkyBox * sb = new FSkyBox;
|
||||
sb->Name = sc.String;
|
||||
FSkyBox * sb = new FSkyBox(sc.String);
|
||||
sb->Name.ToUpper();
|
||||
if (sc.CheckString("fliptop"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue