Hide -gl_stereo behind #if !defined(RELEASE)

As discussed in pull #582, there are some rough edges to this feature.
Hide the option, but not the functionality, from users until these can
be corrected.  Users who want to experiment with the feature can access
it through the command-line or the in-game hotkeys in any build.  This
change only hides the help text, to prevent users from finding it and
expecting it to be fully finished.
This commit is contained in:
Kp 2021-04-04 22:01:25 +00:00
parent 02c99b7645
commit 63940def1a

View file

@ -129,9 +129,19 @@ static void print_commandline_help()
#define DXX_if_defined_placeholder1 ,
#define DXX_if_defined_unwrap(A,...) A, ## __VA_ARGS__
/* If the parameter V, after macro expansion, evaluates to `1`, then
* expand to the parameter F. Otherwise, expand to nothing.
*/
#define DXX_if_defined(V,F) DXX_if_defined2(V,F)
/* If the parameter V, after macro expansion, evaluates to anything
* other than `1`, then expand to the parameter F. Otherwise,
* expand to nothing.
*/
#define DXX_if_not_defined_to_1(V,F) DXX_if_not_defined_to_1_2(V,F)
#define DXX_if_defined2(V,F) DXX_if_defined3(DXX_if_defined_placeholder##V, F)
#define DXX_if_not_defined_to_1_2(V,F) DXX_if_not_defined_to_1_3(DXX_if_defined_placeholder##V, F)
#define DXX_if_defined3(V,F) DXX_if_defined4(F, V 1, 0)
#define DXX_if_not_defined_to_1_3(V,F) DXX_if_defined4(F, V 0, 1)
#define DXX_if_defined4(F,_,V,...) DXX_if_defined5_##V(F)
#define DXX_if_defined5_0(F)
#define DXX_if_defined5_1(F) DXX_if_defined_unwrap F
@ -205,11 +215,13 @@ static void print_commandline_help()
VERB(" 5: Auto: if VSync is enabled and ARB_sync is supported, use mode 2, otherwise mode 0\n") \
VERB(" -gl_syncwait <n> Wait interval (ms) for sync mode 2 (default: " DXX_STRINGIZE(OGL_SYNC_WAIT_DEFAULT) ")\n") \
VERB(" -gl_darkedges Re-enable dark edges around filtered textures (as present in earlier versions of the engine)\n") \
DXX_if_not_defined_to_1(RELEASE, ( \
VERB(" -gl_stereo Enable OpenGL stereo quad buffering, if available\n") \
VERB(" -gl_stereoview <n> Select OpenGL stereo viewport mode\n") \
VERB(" -gl_stereoview <n> Select OpenGL stereo viewport mode (experimental; incomplete)\n") \
VERB(" 1: above/below half-height format\n") \
VERB(" 2: side/by/side half-width format\n") \
VERB(" 3: side/by/side half-size format, normal aspect ratio\n") \
)) \
) \
DXX_if_defined_01(DXX_USE_UDP, ( \
VERB("\n Multiplayer:\n\n") \