Skip to content

Commit

Permalink
Merge pull request #996 from qw-ctf/minor-cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvensson authored Jan 13, 2025
2 parents f39eb14 + 3c50998 commit fb445b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/r_brushmodel_surfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ void R_BrushModelClearTextureChains(model_t *clmodel)
texture_t *texture;

#ifdef RENDERER_OPTION_CLASSIC_OPENGL
GLC_ClearTextureChains();
if (R_UseImmediateOpenGL()) {
GLC_ClearTextureChains();
}
#endif

clmodel->texturechains_have_lumas = false;
Expand Down
4 changes: 0 additions & 4 deletions src/r_rmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,10 +888,6 @@ void R_RenderView(void)
// render normal view
R_DrawWorld(); // adds static entities to the list

if (r_refdef2.wateralpha == 1) {
renderer.DrawWaterSurfaces();
}

R_DrawEntities();

// Adds 3d effects (particles, lights, chat icons etc)
Expand Down

0 comments on commit fb445b3

Please sign in to comment.