From 5339f8df530fd51eba7b7881c83c6428740b97f9 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 19 May 2020 04:06:55 +0100 Subject: [PATCH] [tests] Fix d3d9_triangle --- tests/d3d9/test_d3d9_triangle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/d3d9/test_d3d9_triangle.cpp b/tests/d3d9/test_d3d9_triangle.cpp index 81549d0cf..97051aa32 100644 --- a/tests/d3d9/test_d3d9_triangle.cpp +++ b/tests/d3d9/test_d3d9_triangle.cpp @@ -116,6 +116,9 @@ public: nullptr, &m_device); + if (FAILED(status)) + throw DxvkError("Failed to create D3D9 device"); + // Funny Swapchain Refcounting // "One of the things COM does really well, is lifecycle management" // Implicit Swapchain @@ -165,9 +168,6 @@ public: m_device->GetSwapChain(0, &swapchain); m_device->AddRef(); - - if (FAILED(status)) - throw DxvkError("Failed to create D3D9 device"); // Vertex Shader {