Vulkan: Remove unecessary present fence (#1166)

This commit is contained in:
goeiecool9999 2024-04-11 06:41:57 +02:00 committed by GitHub
parent 391533dbe5
commit 84cad8b280
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 51 deletions

View file

@ -875,11 +875,6 @@ void LatteRenderTarget_getScreenImageArea(sint32* x, sint32* y, sint32* width, s
void LatteRenderTarget_copyToBackbuffer(LatteTextureView* textureView, bool isPadView)
{
if (g_renderer->GetType() == RendererAPI::Vulkan)
{
((VulkanRenderer*)g_renderer.get())->PreparePresentationFrame(!isPadView);
}
// make sure texture is updated to latest data in cache
LatteTexture_UpdateDataToLatest(textureView->baseTexture);
// mark source texture as still in use