From 38be18ef2a36c9c6a35a49ff685df9ebbab8baa7 Mon Sep 17 00:00:00 2001
From: riperiperi <rhy3756547@hotmail.com>
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/TextureView.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'Ryujinx.Graphics.OpenGL/Image/TextureView.cs')

diff --git a/Ryujinx.Graphics.OpenGL/Image/TextureView.cs b/Ryujinx.Graphics.OpenGL/Image/TextureView.cs
index 8799167a..e8c3e3be 100644
--- a/Ryujinx.Graphics.OpenGL/Image/TextureView.cs
+++ b/Ryujinx.Graphics.OpenGL/Image/TextureView.cs
@@ -10,10 +10,10 @@ namespace Ryujinx.Graphics.OpenGL.Image
 
         private readonly TextureStorage _parent;
 
-        public int StorageHandle => _parent.Handle;
-
         private TextureView _incompatibleFormatView;
 
+        public ITextureInfo Storage => _parent;
+
         public int FirstLayer { get; private set; }
         public int FirstLevel { get; private set; }
 
-- 
cgit v1.2.3-70-g09d2