mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-01 05:20:43 +00:00
- 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:
parent
868fece7f6
commit
9879aa90a6
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue