diff options
author | riperiperi <rhy3756547@hotmail.com> | 2021-04-17 21:16:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 22:16:28 +0200 |
commit | 38be18ef2a36c9c6a35a49ff685df9ebbab8baa7 (patch) | |
tree | b561e6c42a36d4fd33e15562c74557417655c089 /Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs | |
parent | dc8c781d7a8a6778e493cca798cf2a7d298983de (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/TextureStorage.cs')
-rw-r--r-- | Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs b/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs index c5108893..ce4616e4 100644 --- a/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs +++ b/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs @@ -4,10 +4,10 @@ using Ryujinx.Graphics.GAL; namespace Ryujinx.Graphics.OpenGL.Image { - class TextureStorage : ITextureInfo + class TextureStorage : ITextureInfo { + public ITextureInfo Storage => this; public int Handle { get; private set; } - public int StorageHandle => Handle; public float ScaleFactor { get; private set; } public TextureCreateInfo Info { get; } |