diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-07-14 13:08:39 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-14 13:08:39 -0300 |
| commit | 2f37583ab3b49aa5064a72c8d3b4e8245ebb6b5b (patch) | |
| tree | 08797d8b190c33cb942f96fb70fc5b18b995909c /Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs | |
| parent | 494f8f0248e7daf3fdfb89a6d90f1598232b6a87 (diff) | |
Some small shader related fixes (#258)
* Some small shader related fixes
* Address PR feedback
Diffstat (limited to 'Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs')
| -rw-r--r-- | Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs index 3c5c874e..c55a758b 100644 --- a/Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs +++ b/Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs @@ -203,6 +203,18 @@ namespace Ryujinx.Graphics.Gal.OpenGL } } + public void Unbind(GalShaderType Type) + { + switch (Type) + { + case GalShaderType.Vertex: Current.Vertex = null; break; + case GalShaderType.TessControl: Current.TessControl = null; break; + case GalShaderType.TessEvaluation: Current.TessEvaluation = null; break; + case GalShaderType.Geometry: Current.Geometry = null; break; + case GalShaderType.Fragment: Current.Fragment = null; break; + } + } + public void BindProgram() { if (Current.Vertex == null || |
