Skip to content

Commit

Permalink
- do not overwrite a textures sky cap color.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Aug 6, 2022
1 parent 10b9d41 commit 4260d33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/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

0 comments on commit 4260d33

Please sign in to comment.