mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
Avoid calling buffer binding when shader didn't change (#295)
This commit is contained in:
parent
39d36145ba
commit
51605fafc0
1 changed files with 4 additions and 1 deletions
|
@ -257,7 +257,10 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
|
|
||||||
GL.UseProgram(Handle);
|
GL.UseProgram(Handle);
|
||||||
|
|
||||||
BindUniformBuffers(Handle);
|
if (CurrentProgramHandle != Handle)
|
||||||
|
{
|
||||||
|
BindUniformBuffers(Handle);
|
||||||
|
}
|
||||||
|
|
||||||
CurrentProgramHandle = Handle;
|
CurrentProgramHandle = Handle;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue