Reorganize the DeviceLost code a little. FramebufferManagerCommon now sees it.

This commit is contained in:
Henrik Rydgård committed 2020-11-07 10:51:54 +01:00
1 parent e37468700d
commit d9ee06a60d
17 files changed
+56 -40

No files matched your search

+4 -7
View File
@@ -388,15 +388,12 @@ void FramebufferManagerVulkan::EndFrame() {
}
void FramebufferManagerVulkan::DeviceLost() {
DestroyAllFBOs();
FramebufferManagerCommon::DeviceLost();
DestroyDeviceObjects();
presentation_->DeviceLost();
}
void FramebufferManagerVulkan::DeviceRestore(VulkanContext *vulkan, Draw::DrawContext *draw) {
vulkan_ = vulkan;
draw_ = draw;
presentation_->DeviceRestore(draw);
void FramebufferManagerVulkan::DeviceRestore(Draw::DrawContext *draw) {
FramebufferManagerCommon::DeviceRestore(draw);
vulkan_ = (VulkanContext *)draw->GetNativeObject(Draw::NativeObject::CONTEXT);
InitDeviceObjects();
}