diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-04-17 05:13:53 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 08:13:53 +0000 |
commit | d9b63353b019e1f1775370154f4f045ff14184ce (patch) | |
tree | ef4909c3da741eb9c498fcd57891c857a5cabe5a /Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs | |
parent | eabd0ec93f903fb39605a29b35db4c6290bc9c88 (diff) |
Support copy between multisample and non-multisample depth textures (#4676)1.1.721
* Support copy between multisample and non-multisample depth textures
* PR feedback
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs')
-rw-r--r-- | Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs b/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs index 75c4d870..a4b08787 100644 --- a/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs +++ b/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs @@ -15,9 +15,12 @@ namespace Ryujinx.Graphics.OpenGL.Image private int _copyPboHandle; private int _copyPboSize; + public IntermediatePool IntermediatePool { get; } + public TextureCopy(OpenGLRenderer renderer) { _renderer = renderer; + IntermediatePool = new IntermediatePool(renderer); } public void Copy( @@ -514,6 +517,8 @@ namespace Ryujinx.Graphics.OpenGL.Image _copyPboHandle = 0; } + + IntermediatePool.Dispose(); } } } |