From 50219acaf950e287335d6065f8f713ce22f08fda Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 23 Jul 2021 17:50:27 +0100 Subject: [PATCH] Fix crash when tests are run on linux --- util/test/tests/D3D12/D3D12_Descriptor_Indexing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/test/tests/D3D12/D3D12_Descriptor_Indexing.py b/util/test/tests/D3D12/D3D12_Descriptor_Indexing.py index 0da5b5a4b..db1c68ccc 100644 --- a/util/test/tests/D3D12/D3D12_Descriptor_Indexing.py +++ b/util/test/tests/D3D12/D3D12_Descriptor_Indexing.py @@ -6,7 +6,8 @@ class D3D12_Descriptor_Indexing(rdtest.TestCase): demos_test_name = 'D3D12_Descriptor_Indexing' def check_support(self): - if rd.GetConfigSetting("D3D12_Experimental_BindlessFeedback").AsBool() is False: + cfg = rd.GetConfigSetting("D3D12_Experimental_BindlessFeedback") + if cfg is not None and cfg.AsBool() is False: return False, 'Bindless feedback is not enabled' return super().check_support()