mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Reorganize the DeviceLost code a little. FramebufferManagerCommon now sees it.
This commit is contained in:
1 parent
e37468700d
commit
d9ee06a60d
17 files changed
+56
-40
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user