1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-10 07:31:43 +00:00

Avoid calling buffer binding when shader didn't change (#295)

This commit is contained in:
ReinUsesLisp 2018-07-26 13:49:29 -03:00 committed by gdkchan
parent 39d36145ba
commit 51605fafc0

View file

@ -257,7 +257,10 @@ namespace Ryujinx.Graphics.Gal.OpenGL
GL.UseProgram(Handle);
BindUniformBuffers(Handle);
if (CurrentProgramHandle != Handle)
{
BindUniformBuffers(Handle);
}
CurrentProgramHandle = Handle;
}