- test skyboxes with dynamic_cast and scale them properly.
This commit is contained in:
parent
217b80b1fb
commit
f7dd16ba16
8 changed files with 57 additions and 50 deletions
|
|
@ -101,12 +101,12 @@ void hw_PrecacheTexture(uint8_t *texhitlist, TMap<PClassActor*, bool> &actorhitl
|
|||
for (int i = 0; i<TexMan.NumTextures(); i++)
|
||||
{
|
||||
// HIT_Wall must be checked for MBF-style sky transfers.
|
||||
if (texhitlist[i] & (FTextureManager::HIT_Sky | FTextureManager::HIT_Wall))
|
||||
if (texhitlist[i] & (FTextureManager::HIT_Sky))
|
||||
{
|
||||
auto tex = TexMan.GameByIndex(i);
|
||||
if (tex->isSkybox())
|
||||
auto sb = dynamic_cast<FSkyBox*>(tex->GetTexture());
|
||||
if (sb)
|
||||
{
|
||||
FSkyBox *sb = static_cast<FSkyBox*>(tex->GetTexture());
|
||||
for (int i = 0; i<6; i++)
|
||||
{
|
||||
if (sb->faces[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue