mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 17:21:15 +01:00
Avoid calling buffer binding when shader didn't change (#295)
This commit is contained in:
1 parent
39d36145ba
commit
51605fafc0
1 file changed
+4
-1
@@ -257,7 +257,10 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||
|
||||
GL.UseProgram(Handle);
|
||||
|
||||
BindUniformBuffers(Handle);
|
||||
if (CurrentProgramHandle != Handle)
|
||||
{
|
||||
BindUniformBuffers(Handle);
|
||||
}
|
||||
|
||||
CurrentProgramHandle = Handle;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user