diff --git a/src/common/textures/gametexture.h b/src/common/textures/gametexture.h index 652e6fbe12..e34ce09491 100644 --- a/src/common/textures/gametexture.h +++ b/src/common/textures/gametexture.h @@ -98,7 +98,8 @@ class FGameTexture int shaderindex = 0; int flags = 0; - uint8_t warped = 0, expandSprite = -1; + uint8_t warped = 0; + int8_t expandSprite = -1; uint16_t GlowHeight; PalEntry GlowColor = 0; diff --git a/src/rendering/swrenderer/plane/r_skyplane.cpp b/src/rendering/swrenderer/plane/r_skyplane.cpp index 7279c906b5..3874257e40 100644 --- a/src/rendering/swrenderer/plane/r_skyplane.cpp +++ b/src/rendering/swrenderer/plane/r_skyplane.cpp @@ -63,7 +63,7 @@ namespace swrenderer { static FSoftwareTexture *GetSWTex(FTextureID texid, bool allownull = true) { - return GetPalettedSWTexture(texid, true, nullptr, true); + return GetPalettedSWTexture(texid, true, false, true); } RenderSkyPlane::RenderSkyPlane(RenderThread *thread) @@ -71,8 +71,8 @@ namespace swrenderer Thread = thread; auto Level = Thread->Viewport->Level(); - auto sskytex1 = GetPalettedSWTexture(Level->skytexture1, true, nullptr, true); - auto sskytex2 = GetPalettedSWTexture(Level->skytexture2, true, nullptr, true); + auto sskytex1 = GetPalettedSWTexture(Level->skytexture1, true, false, true); + auto sskytex2 = GetPalettedSWTexture(Level->skytexture2, true, false, true); if (sskytex1 == nullptr) return;