Some small shader related fixes (#258)

* Some small shader related fixes

* Address PR feedback
This commit is contained in:
gdkchan
2018-07-14 13:08:39 -03:00
committed by GitHub
parent 494f8f0248
commit 2f37583ab3
6 changed files with 57 additions and 28 deletions

View File

@ -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 ||