Correctly disable OGL-only menus/options in software.

This commit is contained in:
toaster 2018-11-04 14:41:24 +00:00
parent 34baa5ae74
commit b8446effe8

View file

@ -1261,6 +1261,7 @@ enum
op_video_fps, op_video_fps,
op_video_vsync, op_video_vsync,
#ifdef HWRENDER #ifdef HWRENDER
op_video_md2,
op_video_ogl, op_video_ogl,
#endif #endif
}; };
@ -3140,7 +3141,7 @@ void M_Init(void)
#ifdef HWRENDER #ifdef HWRENDER
// Permanently hide some options based on render mode // Permanently hide some options based on render mode
if (rendermode == render_soft) if (rendermode == render_soft)
OP_VideoOptionsMenu[op_video_ogl].status = IT_DISABLED; OP_VideoOptionsMenu[op_video_ogl].status = OP_VideoOptionsMenu[op_video_md2].status = IT_DISABLED;
#endif #endif
#ifndef NONET #ifndef NONET