Slight improvement of code

This commit is contained in:
NightFox 2023-12-12 14:56:35 +03:00 committed by GitHub
parent 1a9f97bb14
commit 852b7c28ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -426,17 +426,15 @@ static int enumerateDevices( vk_available_device_t **available_devices ) {
this_device->calibrated_timestamps = deviceSupportsExtensions(extensions, num_device_extensions, device_extensions_extra, ARRAYSIZE(device_extensions_extra));
if (!this_device->ray_tracing) {
#if defined XASH_64BIT
gEngine.Con_Printf( "^6================================================^7\n" );
gEngine.Con_Printf(S_ERROR "^1No ray tracing extensions found.\n^3Check that you have compatible hardware and drivers.^7\n");
gEngine.Con_Printf( "^6================================================^7\n" );
#else
gEngine.Con_Printf( "^6================================================^7\n" );
gEngine.Con_Printf( "^6===================================================^7\n" );
gEngine.Con_Printf(S_ERROR "^1No ray tracing extensions found.^7\n");
#if defined XASH_64BIT
gEngine.Con_Printf(S_NOTE "^3Check that you have compatible hardware and drivers.^7\n");
#else
gEngine.Con_Printf(S_WARN "^3You're running in ^132-bit ^3mode!^7\n");
gEngine.Con_Printf(S_NOTE "^3Ray Tracing REQUIRES ^264-bit ^3process!\n^5Please rebuild and start the 64-bit xash3d binary.^7\n");
gEngine.Con_Printf( "^6================================================^7\n" );
#endif
gEngine.Con_Printf( "^6===================================================^7\n" );
}
Mem_Free(extensions);