diff --git a/src/common/rendering/hwrenderer/data/hw_skydome.cpp b/src/common/rendering/hwrenderer/data/hw_skydome.cpp index d351d79f4..9d1f76ab5 100644 --- a/src/common/rendering/hwrenderer/data/hw_skydome.cpp +++ b/src/common/rendering/hwrenderer/data/hw_skydome.cpp @@ -471,7 +471,8 @@ void FSkyVertexBuffer::DoRenderDome(FRenderState& state, FGameTexture* tex, int // The caps only get drawn for the main layer but not for the overlay. if (mode == FSkyVertexBuffer::SKYMODE_MAINLAYER && tex != nullptr) { - auto& col = R_GetSkyCapColor(tex); + auto col = R_GetSkyCapColor(tex); + col.first.r = col.first.r * color.r / 255; col.first.g = col.first.g * color.g / 255; col.first.b = col.first.b * color.b / 255; diff --git a/src/common/utility/vectors.h b/src/common/utility/vectors.h index e55307811..d61a4f76e 100644 --- a/src/common/utility/vectors.h +++ b/src/common/utility/vectors.h @@ -47,7 +47,6 @@ #include "xs_Float.h" #include "math/cmath.h" -class FSerializer; #define EQUAL_EPSILON (1/65536.)