aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2021-04-17 21:16:28 +0100
committerGitHub <noreply@github.com>2021-04-17 22:16:28 +0200
commit38be18ef2a36c9c6a35a49ff685df9ebbab8baa7 (patch)
treeb561e6c42a36d4fd33e15562c74557417655c089 /Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs
parentdc8c781d7a8a6778e493cca798cf2a7d298983de (diff)
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.
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs8
1 files changed, 4 insertions, 4 deletions
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,