mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-17 06:30:44 +01:00
change default value for vk_device_target_id
This commit is contained in:
parent
e03e738d26
commit
2502c212d4
@ -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) {
|
||||
|
@ -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" );
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user