Fix minor errors

This commit is contained in:
Wojtek Figat
2024-11-20 16:30:23 +01:00
parent a890326b82
commit 03fe1f72a3
2 changed files with 3 additions and 1 deletions

View File

@@ -41,6 +41,8 @@ namespace FlaxEngine.Utilities
public static string GetTypeDisplayName(this Type type)
{
// Special display for in-built basic types
if (type == null)
return "Null";
if (type == typeof(bool))
return "Bool";
if (type == typeof(float))

View File

@@ -77,7 +77,7 @@ GPUDevice* GPUDeviceDX12::Create()
#endif
#ifdef __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__
ComPtr<ID3D12DeviceRemovedExtendedDataSettings> dredSettings;
VALIDATE_DIRECTX_CALL(D3D12GetDebugInterface(IID_PPV_ARGS(&dredSettings)));
D3D12GetDebugInterface(IID_PPV_ARGS(&dredSettings));
if (dredSettings)
{
// Turn on AutoBreadcrumbs and Page Fault reporting