From 7648217f15a767e5759d6e423a2ae9e5a33a23f9 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Fri, 19 Jan 2018 12:53:46 -0500 Subject: [PATCH] NXTTest: destroy the swapchain before the device --- src/tests/NXTTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/NXTTest.cpp b/src/tests/NXTTest.cpp index 6d6fff23cb..e0f2c0dfee 100644 --- a/src/tests/NXTTest.cpp +++ b/src/tests/NXTTest.cpp @@ -21,8 +21,8 @@ #include "utils/NXTHelpers.h" #include "utils/SystemUtils.h" +#include #include "GLFW/glfw3.h" - namespace { utils::BackendType ParamToBackendType(BackendType type) { @@ -97,8 +97,8 @@ NXTTest::~NXTTest() { // We need to destroy child objects before the Device mReadbackSlots.clear(); queue = nxt::Queue(); - device = nxt::Device(); swapchain = nxt::SwapChain(); + device = nxt::Device(); delete mBinding; mBinding = nullptr;