mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 19:01:24 +00:00
NXTTest: destroy the swapchain before the device
This commit is contained in:
parent
b91022dc23
commit
7648217f15
@ -21,8 +21,8 @@
|
|||||||
#include "utils/NXTHelpers.h"
|
#include "utils/NXTHelpers.h"
|
||||||
#include "utils/SystemUtils.h"
|
#include "utils/SystemUtils.h"
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
#include "GLFW/glfw3.h"
|
#include "GLFW/glfw3.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
utils::BackendType ParamToBackendType(BackendType type) {
|
utils::BackendType ParamToBackendType(BackendType type) {
|
||||||
@ -97,8 +97,8 @@ NXTTest::~NXTTest() {
|
|||||||
// We need to destroy child objects before the Device
|
// We need to destroy child objects before the Device
|
||||||
mReadbackSlots.clear();
|
mReadbackSlots.clear();
|
||||||
queue = nxt::Queue();
|
queue = nxt::Queue();
|
||||||
device = nxt::Device();
|
|
||||||
swapchain = nxt::SwapChain();
|
swapchain = nxt::SwapChain();
|
||||||
|
device = nxt::Device();
|
||||||
|
|
||||||
delete mBinding;
|
delete mBinding;
|
||||||
mBinding = nullptr;
|
mBinding = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user