Skip to content

Commit

Permalink
- fixed sky cap color handling
Browse files Browse the repository at this point in the history
Backported from Raze
  • Loading branch information
coelckers committed Aug 26, 2022
1 parent ed5287e commit 7ad09c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/common/rendering/hwrenderer/data/hw_skydome.cpp
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/common/utility/vectors.h
Expand Up @@ -47,7 +47,6 @@
#include "xs_Float.h"
#include "math/cmath.h"

class FSerializer;

#define EQUAL_EPSILON (1/65536.)

Expand Down

0 comments on commit 7ad09c7

Please sign in to comment.