mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Enable debug layer only when tests are run with "--validate" argument.
This commit is contained in:
parent
3c66c74167
commit
3ab664c84a
@ -3111,9 +3111,13 @@ static void test_bundle_state_inheritance(void)
|
||||
|
||||
START_TEST(d3d12)
|
||||
{
|
||||
BOOL enable_debug_layer = FALSE;
|
||||
ID3D12Debug *debug;
|
||||
|
||||
if (SUCCEEDED(D3D12GetDebugInterface(&IID_ID3D12Debug, (void **)&debug)))
|
||||
if (argc >= 2 && !strcmp(argv[1], "--validate"))
|
||||
enable_debug_layer = TRUE;
|
||||
|
||||
if (enable_debug_layer && SUCCEEDED(D3D12GetDebugInterface(&IID_ID3D12Debug, (void **)&debug)))
|
||||
{
|
||||
ID3D12Debug_EnableDebugLayer(debug);
|
||||
ID3D12Debug_Release(debug);
|
||||
|
Loading…
Reference in New Issue
Block a user