From d786d8d2b924da7cd116a2eb97d738a9f07b4e43 Mon Sep 17 00:00:00 2001 From: gdk <gab.dark.100@gmail.com> Date: Wed, 30 Oct 2019 20:45:01 -0300 Subject: Support copy of slices to 3D textures, remove old 3D render target layered render support, do not delete textures with existing views created from them --- Ryujinx.Graphics.OpenGL/TextureView.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Graphics.OpenGL/TextureView.cs') diff --git a/Ryujinx.Graphics.OpenGL/TextureView.cs b/Ryujinx.Graphics.OpenGL/TextureView.cs index 8a2b50dc..8fced290 100644 --- a/Ryujinx.Graphics.OpenGL/TextureView.cs +++ b/Ryujinx.Graphics.OpenGL/TextureView.cs @@ -137,11 +137,11 @@ namespace Ryujinx.Graphics.OpenGL return _parent.GetHashCode(); } - public void CopyTo(ITexture destination) + public void CopyTo(ITexture destination, int firstLayer, int firstLevel) { TextureView destinationView = (TextureView)destination; - TextureCopyUnscaled.Copy(this, destinationView, 0, 0); + TextureCopyUnscaled.Copy(this, destinationView, firstLayer, firstLevel); int width = Math.Min(Width, destinationView.Width); int height = Math.Min(Height, destinationView.Height); -- cgit v1.2.3-70-g09d2