fixed a bug that don't copy color_space data.

This commit is contained in:
2021-09-23 15:19:09 +08:00
parent 1e81a9f4c4
commit 45f5d0d5be
6 changed files with 21 additions and 19 deletions

View File

@@ -8,7 +8,7 @@ void GPUDevice::InitRenderPassManage()
{
render_pass_manage=new DeviceRenderPassManage(attr->device,attr->pipeline_cache);
SwapchainRenderbufferInfo rbi(attr->format,attr->physical_device->GetDepthFormat());
SwapchainRenderbufferInfo rbi(attr->surface_format.format,attr->physical_device->GetDepthFormat());
device_render_pass=render_pass_manage->AcquireRenderPass(&rbi);
}