mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-06 02:08:28 +02: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