Wire inflight frames config setting to render managers.

This commit is contained in:
Stuart Kenny 2021-09-11 19:05:34 +01:00
parent f53546362f
commit 825a84a5d1
2 changed files with 6 additions and 0 deletions

View File

@ -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() {

View File

@ -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() {