- more texture handling cleanup.

Most of the renderer now bypasses the tile manager and goes directly to the low level texture manager.
The gotpic array was removed and replaced by a new texture flag. Since there are only 3 places in the entire code that check this, this is a lot easier to handle.
This commit is contained in:
Christoph Oelckers 2022-12-05 22:27:54 +01:00
parent 868fece7f6
commit 9879aa90a6

View file

@ -44,10 +44,11 @@ FGameTexture* SkyboxReplacement(FTextureID picnum, int palnum);
void initSkyInfo(HWDrawInfo *di, HWSkyInfo* sky, sectortype* sector, int plane)
{
int picnum = plane == plane_ceiling ? sector->ceilingpicnum : sector->floorpicnum;
auto tex = tileGetTexture(picnum);
tileUpdatePicnum(&picnum);
int palette = plane == plane_ceiling ? sector->ceilingpal : sector->floorpal;
FGameTexture* skytex = SkyboxReplacement(tileGetTexture(picnum)->GetID(), palette);
FGameTexture* skytex = SkyboxReplacement(tex->GetID(), palette);
int realskybits = 0;
// todo: check for skybox replacement.
SkyDefinition skydef;