From e9222a426ae300f5e05871f37a7847ae6085d36b Mon Sep 17 00:00:00 2001 From: riperiperi Date: Sun, 14 Nov 2021 14:37:11 +0000 Subject: [PATCH] Submit command buffer before Texture GetData. (UE4 fix) --- Ryujinx.Graphics.Vulkan/TextureView.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ryujinx.Graphics.Vulkan/TextureView.cs b/Ryujinx.Graphics.Vulkan/TextureView.cs index 69efcf61b..7c463e38c 100644 --- a/Ryujinx.Graphics.Vulkan/TextureView.cs +++ b/Ryujinx.Graphics.Vulkan/TextureView.cs @@ -636,6 +636,8 @@ namespace Ryujinx.Graphics.Vulkan { if (_gd.CommandBufferPool.OwnedByCurrentThread) { + _gd.FlushAllCommands(); + return GetData(_gd.CommandBufferPool); } else if (_gd.BackgroundQueue.Handle != 0)