Skip to content

Commit

Permalink
- GLES fixed: The weapon sprite must be rendered with the fullscreen …
Browse files Browse the repository at this point in the history
…colormap on.
  • Loading branch information
coelckers committed Sep 18, 2021
1 parent 1fe5fc2 commit 31de21e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rendering/hwrenderer/hw_entrypoint.cpp
Expand Up @@ -166,9 +166,6 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou

di->ProcessScene(toscreen);

// Reset colormap so 2D drawing isn't affected
RenderState.SetSpecialColormap(CM_DEFAULT, 1);

if (mainview)
{
PostProcess.Clock();
Expand All @@ -183,6 +180,9 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou
screen->PostProcessScene(false, cm, flash, [&]() { di->DrawEndScene2D(mainvp.sector, RenderState); });
PostProcess.Unclock();
}
// Reset colormap so 2D drawing isn't affected
RenderState.SetSpecialColormap(CM_DEFAULT, 1);

di->EndDrawInfo();
if (eyeCount - eye_ix > 1)
screen->NextEye(eyeCount);
Expand Down

0 comments on commit 31de21e

Please sign in to comment.