From a07455c175db33d8d95bc5cd83738808d74cd105 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 11 Mar 2021 09:14:30 -0800 Subject: Add Linux support to `platform` and `gfx`. (#1744) --- examples/shader-toy/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/shader-toy') diff --git a/examples/shader-toy/main.cpp b/examples/shader-toy/main.cpp index 70bff13a8..27fdf4daa 100644 --- a/examples/shader-toy/main.cpp +++ b/examples/shader-toy/main.cpp @@ -442,9 +442,7 @@ Result initialize() swapchainDesc.height = gWindowHeight; swapchainDesc.imageCount = kSwapchainImageCount; swapchainDesc.queue = gQueue; - gfx::WindowHandle windowHandle; - memcpy(&windowHandle, &gWindow->getNativeHandle(), sizeof(windowHandle)); - gSwapchain = gDevice->createSwapchain(swapchainDesc, windowHandle); + gSwapchain = gDevice->createSwapchain(swapchainDesc, gWindow->getNativeHandle().convert()); IFramebufferLayout::AttachmentLayout renderTargetLayout = {gSwapchain->getDesc().format, 1}; IFramebufferLayout::AttachmentLayout depthLayout = {gfx::Format::D_Float32, 1}; -- cgit v1.2.3