From ab4aa2af3ef548ed489469464ed3f112646a2aa2 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Thu, 17 Aug 2017 16:16:20 -0400 Subject: [PATCH] NXTTest: Configure the swapchain Otherwise when trying to use SwapBuffersForCapture a device error is generated. --- src/tests/NXTTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/NXTTest.cpp b/src/tests/NXTTest.cpp index 411eddf7ae..9d5a9b772b 100644 --- a/src/tests/NXTTest.cpp +++ b/src/tests/NXTTest.cpp @@ -142,6 +142,7 @@ void NXTTest::SetUp() { swapchain = device.CreateSwapChainBuilder() .SetImplementation(binding->GetSwapChainImplementation()) .GetResult(); + swapchain.Configure(nxt::TextureFormat::R8G8B8A8Unorm, 400, 400); device.SetErrorCallback(DeviceErrorCauseTestFailure, 0); }