NXTTest: Configure the swapchain

Otherwise when trying to use SwapBuffersForCapture a device error is
generated.
This commit is contained in:
Corentin Wallez 2017-08-17 16:16:20 -04:00 committed by Corentin Wallez
parent 9a72ea09a9
commit ab4aa2af3e
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}