From 4a7ff689fb3dbf80717b92216e9c683e0318513b Mon Sep 17 00:00:00 2001 From: hyzboy Date: Wed, 26 Jun 2019 16:50:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BD=E6=95=B0=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RenderDevice/Vulkan/VKDeviceCreater.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RenderDevice/Vulkan/VKDeviceCreater.cpp b/src/RenderDevice/Vulkan/VKDeviceCreater.cpp index 546d1c59..131ee2a5 100644 --- a/src/RenderDevice/Vulkan/VKDeviceCreater.cpp +++ b/src/RenderDevice/Vulkan/VKDeviceCreater.cpp @@ -246,7 +246,7 @@ namespace return cache; } - bool CreateSwapchinAndImageView(DeviceAttribute *attr) + bool CreateSwapchinAndDepthBuffer(DeviceAttribute *attr) { attr->swap_chain=CreateSwapChain(attr); @@ -518,7 +518,7 @@ Device *CreateRenderDevice(VkInstance inst,const PhysicalDevice *physical_device if(!attr->cmd_pool) return(nullptr); - if(!CreateSwapchinAndImageView(attr)) + if(!CreateSwapchinAndDepthBuffer(attr)) return(nullptr); attr->desc_pool=CreateDescriptorPool(attr->device,1024); @@ -548,6 +548,6 @@ bool ResizeRenderDevice(DeviceAttribute *attr,uint width,uint height) attr->swapchain_extent=GetSwapchainExtent(attr->surface_caps,width,height); - return CreateSwapchinAndImageView(attr); + return CreateSwapchinAndDepthBuffer(attr); } VK_NAMESPACE_END