Skip to content

Commit

Permalink
Fix intro menu when only one upscaler is available
Browse files Browse the repository at this point in the history
  • Loading branch information
vs-shirokii committed Aug 11, 2024
1 parent c7d5298 commit 7055611
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions src/common/rendering/rt/rt_cutscene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -862,23 +862,26 @@ namespace firststart
{
case ITEM_MODE: {
cvar::rt_framegen = false;
if( cvar::rt_upscale_dlss > 0 && cvar::rt_available_dlss2 )
if( cvar::rt_available_dlss2 && cvar::rt_available_fsr2 )
{
const int preset = *cvar::rt_upscale_dlss;
cvar::rt_upscale_dlss = 0;
cvar::rt_upscale_fsr2 = preset;
if( cvar::rt_upscale_dlss > 0 )
{
const int preset = *cvar::rt_upscale_dlss;
cvar::rt_upscale_dlss = 0;
cvar::rt_upscale_fsr2 = preset;
}
else if( cvar::rt_upscale_fsr2 > 0 )
{
const int preset = *cvar::rt_upscale_fsr2;
cvar::rt_upscale_dlss = preset;
cvar::rt_upscale_fsr2 = 0;
}
}
else if( cvar::rt_upscale_fsr2 > 0 && cvar::rt_available_fsr2 )
else if( !cvar::rt_available_dlss2 && !cvar::rt_available_fsr2 )
{
const int preset = *cvar::rt_upscale_fsr2;
cvar::rt_upscale_dlss = preset;
cvar::rt_upscale_dlss = 0;
cvar::rt_upscale_fsr2 = 0;
}
else
{
cvar::rt_upscale_dlss = cvar::rt_available_dlss2 ? 2 : 0;
cvar::rt_upscale_fsr2 = cvar::rt_available_dlss2 ? 0 : 2;
}
return true;
}
case ITEM_PRESET: {
Expand Down Expand Up @@ -1139,6 +1142,7 @@ namespace firststart

if( state.finished )
{
twod->AddColorOnlyQuad( 0, 0, twod->GetWidth(), twod->GetHeight(), 0xFF000000 );
return;
}

Expand Down

0 comments on commit 7055611

Please sign in to comment.