Add ClearBits for FBitSet

Because otherwise the condition will be called all the time.
This commit is contained in:
NightFox 2021-12-01 13:59:38 +03:00 committed by Ivan Avdeev
parent 3de2a98db4
commit c6f92b0664
1 changed files with 1 additions and 0 deletions

View File

@ -315,6 +315,7 @@ void R_BeginFrame( qboolean clearScene )
if (vk_core.rtx && FBitSet( vk_rtx->flags, FCVAR_CHANGED )) {
g_frame.rtx_enabled = CVAR_TO_BOOL( vk_rtx );
}
ClearBits( vk_rtx->flags, FCVAR_CHANGED );
{
gEngine.Con_NPrintf(5, "Perf scopes:");
for (int i = 0; i < g_aprof.num_scopes; ++i) {