Skip to content

Commit

Permalink
Fix screen effects not being taken into account with OpenGL dark overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
andrikpowell committed Dec 13, 2024
1 parent 7621899 commit 2fc774b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prboom2/src/gl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ void gld_FillBlock(int x, int y, int width, int height, int col)

void gld_DrawShaded(int x, int y, int width, int height, int shade)
{
color_rgb_t color = gld_LookupIndexedColor(playpal_black, V_IsAutomapLightmodeIndexed());
color_rgb_t color = gld_LookupIndexedColor((invul_cm && !V_IsAutomapLightmodeIndexed()) ? playpal_white : playpal_black, V_IsUILightmodeIndexed() || V_IsAutomapLightmodeIndexed());

glsl_PushNullShader();

Expand Down

0 comments on commit 2fc774b

Please sign in to comment.