mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Wire inflight frames config setting to render managers.
This commit is contained in:
parent
f53546362f
commit
825a84a5d1
@ -28,6 +28,9 @@ void LibretroGLCoreContext::CreateDrawContext() {
|
||||
}
|
||||
draw_ = Draw::T3DCreateGLContext();
|
||||
renderManager_ = (GLRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER);
|
||||
renderManager_->SetInflightFrames(g_Config.iInflightFrames);
|
||||
SetGPUBackend(GPUBackend::OPENGL);
|
||||
draw_->CreatePresets();
|
||||
}
|
||||
|
||||
void LibretroGLCoreContext::DestroyDrawContext() {
|
||||
|
@ -11,6 +11,7 @@
|
||||
|
||||
#include "libretro/LibretroVulkanContext.h"
|
||||
#include "libretro/libretro_vulkan.h"
|
||||
#include <GPU/Vulkan/VulkanRenderManager.h>
|
||||
|
||||
static VulkanContext *vk;
|
||||
|
||||
@ -140,6 +141,8 @@ void LibretroVulkanContext::CreateDrawContext() {
|
||||
}
|
||||
|
||||
draw_ = Draw::T3DCreateVulkanContext(vk, false);
|
||||
((VulkanRenderManager*)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER))->SetInflightFrames(g_Config.iInflightFrames);
|
||||
SetGPUBackend(GPUBackend::VULKAN);
|
||||
}
|
||||
|
||||
void LibretroVulkanContext::Shutdown() {
|
||||
|
Loading…
Reference in New Issue
Block a user