Skip to content

Commit

Permalink
- disable palette emulation when rendering weapons.
Browse files Browse the repository at this point in the history
The 2D code cannot handle transparency well with it.
  • Loading branch information
coelckers committed Jan 8, 2022
1 parent 70087eb commit fe0581e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/core/rendering/hw_entrypoint.cpp
Expand Up @@ -162,6 +162,7 @@ void RenderViewpoint(FRenderViewpoint& mainvp, IntRect* bounds, float fov, float
}

screen->PostProcessScene(false, CM_DEFAULT, flash, []() {
hw_int_useindexedcolortextures = false;
Draw2D(&twodpsp, *screen->RenderState()); // draws the weapon sprites
});
PostProcess.Unclock();
Expand Down

2 comments on commit fe0581e

@Talon1024
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rendering weapons with palette emulation on worked just fine in 771a843

@coelckers
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it never worked. 2D has always been using true color mode, but the last commit accidentally re-enabled PE for it.

Please sign in to comment.