Skip to content

Commit

Permalink
Fix some variables related to VR and hide the VR option on builds tha…
Browse files Browse the repository at this point in the history
…t don't use it
  • Loading branch information
MadDeCoDeR committed Oct 27, 2024
1 parent d1d3029 commit 968b110
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion neo/d3xp/menus/MenuScreen_Shell_Stereoscopics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void idMenuScreen_Shell_Stereoscopics::HideScreen( const mainMenuTransition_t tr

/*
========================
idMenuScreen_Shell_Stereoscopics::HandleAction h
idMenuScreen_Shell_Stereoscopics::HandleAction
========================
*/
bool idMenuScreen_Shell_Stereoscopics::HandleAction( idWidgetAction& action, const idWidgetEvent& event, idMenuWidget* widget, bool forceHandled )
Expand Down Expand Up @@ -402,6 +402,9 @@ void idMenuScreen_Shell_Stereoscopics::idMenuDataSource_StereoSettings::AdjustFi
{
numOptions--;
}
#ifndef USE_OPENXR
numOptions--;
#endif

int adjusted = fields[ fieldIndex ].ToInteger() + adjustAmount;
adjusted += numOptions;
Expand Down
6 changes: 3 additions & 3 deletions neo/renderer/RenderSystem_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ idCVar r_clight("r_clight", "0", CVAR_RENDERER | CVAR_ARCHIVE | CVAR_INTEGER | C
idCVar r_clblurry("r_clblurry", "0", CVAR_RENDERER | CVAR_ARCHIVE | CVAR_BOOL | CVAR_INIT, "Enables/Disbles Classic DOOM Blurry effects");//GK: Useless since the new Rendering Code of 1.2.0
extern idCVar swf_cursorDPI;
extern idCVar cl_HUD;
extern idCVar cl_ScreenSize;
//GK end
idCVar r_forceScreenWidthCentimeters("r_forceScreenWidthCentimeters", "0", CVAR_RENDERER | CVAR_ARCHIVE, "Override screen width returned by hardware");
const char* fileExten[3] = { "tga", "png", "jpg" };
Expand Down Expand Up @@ -2385,12 +2386,11 @@ void idRenderSystemLocal::Init()
#ifdef USE_OPENXR
if (((stereo3DMode_t)stereoRender_enable.GetInteger()) == STEREO3D_VR && !xrSystem->IsInitialized()) {
if (xrSystem->InitXR()) {
r_fullscreen.SetInteger(1);
r_customWidth.SetInteger(xrSystem->GetWidth());
r_customHeight.SetInteger(xrSystem->GetHeight());
r_fullscreen.SetInteger(0);
cl_HUD.SetBool(true);
r_useVirtualScreenResolution.SetBool(true);
r_useSRGB.SetBool(false);
cl_ScreenSize.SetInteger(1);
xrSystem->SetActionSet("MENU");
game->SetCVarInteger("stereoRender_convergence", 0);
}
Expand Down

0 comments on commit 968b110

Please sign in to comment.