From ba1de8fde04fe52821120635431c1ff5d7ec0cfb Mon Sep 17 00:00:00 2001 From: Indev Date: Sat, 23 Mar 2024 20:24:28 +0300 Subject: [PATCH] Fix NOHW compilation warning --- src/p_setup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_setup.c b/src/p_setup.c index fa6bcc0a7..9ae36afc9 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -1434,7 +1434,9 @@ static void P_LoadRawSideDefs2(void *data) case 606: //SoM: 4/4/2000: Just colormap transfer // SoM: R_CreateColormap will only create a colormap in software mode... // Perhaps we should just call it instead of doing the calculations here. - if (rendermode == render_soft || rendermode == render_none) +#ifdef HWRENDER + if (rendermode != render_opengl) +#endif { if (msd->toptexture[0] == '#' || msd->bottomtexture[0] == '#') {