aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Framebuffer.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2021-05-16 19:43:27 +0100
committerGitHub <noreply@github.com>2021-05-16 20:43:27 +0200
commit212e472c9fac8253456d710e0b071579da330c0a (patch)
tree7dd5038a561cee9ca862ef8e0e952784ad7f2869 /Ryujinx.Graphics.OpenGL/Framebuffer.cs
parentbec67dbef7a505fb5c4a1734be1517f67474fb4d (diff)
Use copy dependencies for the Intel/AMD view format workaround (#2144)
* This might help AMD a bit * Removal of old workaround.
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Framebuffer.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Framebuffer.cs25
1 files changed, 1 insertions, 24 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Framebuffer.cs b/Ryujinx.Graphics.OpenGL/Framebuffer.cs
index e6b70376..76b321b7 100644
--- a/Ryujinx.Graphics.OpenGL/Framebuffer.cs
+++ b/Ryujinx.Graphics.OpenGL/Framebuffer.cs
@@ -40,15 +40,7 @@ namespace Ryujinx.Graphics.OpenGL
FramebufferAttachment attachment = FramebufferAttachment.ColorAttachment0 + index;
- if (HwCapabilities.Vendor == HwCapabilities.GpuVendor.Amd ||
- HwCapabilities.Vendor == HwCapabilities.GpuVendor.IntelWindows)
- {
- GL.FramebufferTexture(FramebufferTarget.Framebuffer, attachment, color?.GetIncompatibleFormatViewHandle() ?? 0, 0);
- }
- else
- {
- GL.FramebufferTexture(FramebufferTarget.Framebuffer, attachment, color?.Handle ?? 0, 0);
- }
+ GL.FramebufferTexture(FramebufferTarget.Framebuffer, attachment, color?.Handle ?? 0, 0);
_colors[index] = color;
}
@@ -92,21 +84,6 @@ namespace Ryujinx.Graphics.OpenGL
}
}
- public void SignalModified()
- {
- if (HwCapabilities.Vendor == HwCapabilities.GpuVendor.Amd ||
- HwCapabilities.Vendor == HwCapabilities.GpuVendor.IntelWindows)
- {
- for (int i = 0; i < 8; i++)
- {
- if (_colors[i] != null)
- {
- _colors[i].SignalModified();
- }
- }
- }
- }
-
public void SetDualSourceBlend(bool enable)
{
bool oldEnable = _dualSourceBlend;