mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-30 09:39:56 -06:00
Avoid calling buffer binding when shader didn't change (#295)
This commit is contained in:
@ -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