From 48e3c14d30fb73a033f2bdff3cfc6f3897683c3f Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Wed, 15 Nov 2023 20:09:09 +0100 Subject: [PATCH] hide screentex toggle in software its an opengl only thing, so no need to toggle if in software mode --- src/m_menu.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/m_menu.c b/src/m_menu.c index 724d5000b..61944a77a 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -1418,7 +1418,6 @@ static menuitem_t OP_ExpOptionsMenu[] = #endif }; - static const char* OP_ExpTooltips[] = { NULL, @@ -1427,6 +1426,17 @@ static const char* OP_ExpTooltips[] = "Should the game do Screen Textures? Provides a good boost to frames\nat the cost of some visual effects not working when disabled.", }; +enum +{ + op_exp_header, + op_exp_precipinter, + op_exp_lessprecip, +#ifdef HWRENDER + op_exp_grscrtx, +#endif +}; + + #ifdef HWRENDER static menuitem_t OP_OpenGLOptionsMenu[] = { @@ -4287,7 +4297,10 @@ void M_Init(void) #ifdef HWRENDER // Permanently hide some options based on render mode if (rendermode == render_soft) + { OP_VideoOptionsMenu[op_video_ogl].status = IT_DISABLED; + OP_ExpOptionsMenu[op_exp_grscrtx].status = IT_DISABLED; + } #endif if (!snw_speedo && !kartzspeedo) // why bother?