mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-22 22:36:25 +00:00
Avoid calling buffer binding when shader didn't change (#295)
This commit is contained in:
parent
39d36145ba
commit
51605fafc0
@ -257,7 +257,10 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||
|
||||
GL.UseProgram(Handle);
|
||||
|
||||
BindUniformBuffers(Handle);
|
||||
if (CurrentProgramHandle != Handle)
|
||||
{
|
||||
BindUniformBuffers(Handle);
|
||||
}
|
||||
|
||||
CurrentProgramHandle = Handle;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user