Update ref_vk/vk_framectl.c

Okay

Co-authored-by: Ivan Avdeev <marflon@gmail.com>
This commit is contained in:
NightFox 2021-11-30 22:23:17 +03:00 committed by Ivan Avdeev
parent 1bf72f6a1a
commit 5917fff727
1 changed files with 1 additions and 5 deletions

View File

@ -313,11 +313,7 @@ static qboolean createSwapchain( void )
void R_BeginFrame( qboolean clearScene )
{
if (vk_core.rtx && FBitSet( vk_rtx->flags, FCVAR_CHANGED )) {
if( CVAR_TO_BOOL( vk_rtx )) {
g_frame.rtx_enabled = 1;
} else {
g_frame.rtx_enabled = 0;
}
g_frame.rtx_enabled = CVAR_TO_BOOL( vk_rtx );
}
{
gEngine.Con_NPrintf(5, "Perf scopes:");