change default value for vk_device_target_id

This commit is contained in:
NightFox 2021-12-09 23:12:32 +03:00 committed by Ivan Avdeev
parent e03e738d26
commit 2502c212d4
2 changed files with 2 additions and 3 deletions

View File

@ -427,7 +427,7 @@ static qboolean createDevice( void ) {
vk_available_device_t *available_devices;
const int num_available_devices = enumerateDevices( &available_devices );
char unique_deviceID[16];
const qboolean is_target_device = vk_device_target_id && Q_stricmp(vk_device_target_id->string, "0") && num_available_devices > 0;
const qboolean is_target_device = vk_device_target_id && Q_stricmp(vk_device_target_id->string, "") && num_available_devices > 0;
qboolean is_target_device_found = false;
for (int i = 0; i < num_available_devices; ++i) {

View File

@ -16,7 +16,7 @@ void VK_LoadCvars( void )
r_lightmap = gEngine.Cvar_Get( "r_lightmap", "0", FCVAR_CHEAT, "lightmap debugging tool" );
ui_infotool = gEngine.Cvar_Get( "ui_infotool", "0", FCVAR_CHEAT, "DEBUG: print entity info under crosshair" );
vk_only = gEngine.Cvar_Get( "vk_only", "0", FCVAR_GLCONFIG, "Full disable Ray Tracing pipeline" );
vk_device_target_id = gEngine.Cvar_Get( "vk_device_target_id", "0", FCVAR_GLCONFIG, "Selected video device id" );
vk_device_target_id = gEngine.Cvar_Get( "vk_device_target_id", "", FCVAR_GLCONFIG, "Selected video device id" );
}
void VK_LoadCvarsAfterInit( void )
{
@ -30,5 +30,4 @@ void VK_LoadCvarsAfterInit( void )
vk_rtx = gEngine.Cvar_Get( "vk_rtx", "0", FCVAR_READ_ONLY, "DISABLED: not supported by your hardware/software" );
}
vk_device_list = gEngine.Cvar_Get( "vk_device_list", vk_core.device_list, FCVAR_READ_ONLY, "List video devices" );
}