From 2562ca6c3fe6ef328e0926c9cbcd6bb52abb328f Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Tue, 25 Sep 2018 19:55:30 -0300 Subject: Fix multiple rendertargets (#427) * Simplify render target bindings * Implement multiple viewports * Pack glViewportIndexed calls into a single glViewportArray * Use ARB_viewport_array when available * Cache framebuffer attachments * Use get accessors in OGLExtension * Address feedback --- Ryujinx.Graphics/GpuResourceManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Graphics/GpuResourceManager.cs') diff --git a/Ryujinx.Graphics/GpuResourceManager.cs b/Ryujinx.Graphics/GpuResourceManager.cs index 0a8d2014..71390a83 100644 --- a/Ryujinx.Graphics/GpuResourceManager.cs +++ b/Ryujinx.Graphics/GpuResourceManager.cs @@ -46,7 +46,7 @@ namespace Ryujinx.Graphics Gpu.Renderer.Texture.Create(Position, (int)Size, NewImage); } - Gpu.Renderer.RenderTarget.BindColor(Position, Attachment, NewImage); + Gpu.Renderer.RenderTarget.BindColor(Position, Attachment); } public void SendZetaBuffer(NvGpuVmm Vmm, long Position, GalImage NewImage) @@ -60,7 +60,7 @@ namespace Ryujinx.Graphics Gpu.Renderer.Texture.Create(Position, (int)Size, NewImage); } - Gpu.Renderer.RenderTarget.BindZeta(Position, NewImage); + Gpu.Renderer.RenderTarget.BindZeta(Position); } public void SendTexture(NvGpuVmm Vmm, long Position, GalImage NewImage, int TexIndex = -1) -- cgit v1.2.3