- fixed sky cap color handling

Backported from Raze
This commit is contained in:
Christoph Oelckers 2022-08-26 18:17:02 +02:00
parent ed5287ef23
commit 7ad09c7a77
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -47,7 +47,6 @@
#include "xs_Float.h"
#include "math/cmath.h"
class FSerializer;
#define EQUAL_EPSILON (1/65536.)