Revert shader bind "cache"
This commit is contained in:
parent
89bb979704
commit
15bf5eb919
1 changed files with 3 additions and 6 deletions
|
@ -245,14 +245,11 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
Programs.Add(Current, Handle);
|
Programs.Add(Current, Handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Handle != CurrentProgramHandle)
|
GL.UseProgram(Handle);
|
||||||
{
|
|
||||||
GL.UseProgram(Handle);
|
|
||||||
|
|
||||||
BindUniformBuffers(Handle);
|
BindUniformBuffers(Handle);
|
||||||
|
|
||||||
CurrentProgramHandle = Handle;
|
CurrentProgramHandle = Handle;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AttachIfNotNull(int ProgramHandle, ShaderStage Stage)
|
private void AttachIfNotNull(int ProgramHandle, ShaderStage Stage)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue