From 38be18ef2a36c9c6a35a49ff685df9ebbab8baa7 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Sat, 17 Apr 2021 21:16:28 +0100 Subject: Fix intel view copy workaround. (#2216) The texture target must be taken from the storage rather than the view, when using the storage handle for the copy. --- Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs') diff --git a/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs b/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs index 3c0546d2..621388ce 100644 --- a/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs +++ b/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs @@ -208,14 +208,14 @@ namespace Ryujinx.Graphics.OpenGL.Image if (HwCapabilities.Vendor == HwCapabilities.GpuVendor.Intel) { GL.CopyImageSubData( - src.StorageHandle, - srcInfo.Target.ConvertToImageTarget(), + src.Storage.Handle, + src.Storage.Info.Target.ConvertToImageTarget(), src.FirstLevel + srcLevel + level, 0, 0, src.FirstLayer + srcLayer, - dst.StorageHandle, - dstInfo.Target.ConvertToImageTarget(), + dst.Storage.Handle, + dst.Storage.Info.Target.ConvertToImageTarget(), dst.FirstLevel + dstLevel + level, 0, 0, -- cgit v1.2.3