将CreateRenderDevice转移到Window类中,并记录device,以方便在RESIZE等时重建SwapChain
This commit is contained in:
@@ -36,7 +36,6 @@ public:
|
||||
virtual ~VulkanApplicationFramework()
|
||||
{
|
||||
SAFE_CLEAR(shader_manage);
|
||||
SAFE_CLEAR(device);
|
||||
SAFE_CLEAR(inst);
|
||||
SAFE_CLEAR(win);
|
||||
}
|
||||
@@ -62,7 +61,7 @@ public:
|
||||
if(!inst)
|
||||
return(false);
|
||||
|
||||
device=inst->CreateRenderDevice(win);
|
||||
device=win->CreateRenderDevice(inst);
|
||||
|
||||
if(!device)
|
||||
return(false);
|
||||
|
Reference in New Issue
Block a user