Fix regression
This commit is contained in:
parent
1700642ed2
commit
b3972745d5
1 changed files with 2 additions and 5 deletions
|
@ -297,12 +297,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
|||
{
|
||||
long Key = S.ConstBufferKeys[(int)Stage.Type][DeclInfo.Cbuf];
|
||||
|
||||
if (Key != 0 && Key != O.ConstBufferKeys[(int)Stage.Type][DeclInfo.Cbuf])
|
||||
if (Key != 0 && Buffer.TryGetUbo(Key, out int UboHandle))
|
||||
{
|
||||
if (Buffer.TryGetUbo(Key, out int UboHandle))
|
||||
{
|
||||
GL.BindBufferBase(BufferRangeTarget.UniformBuffer, FreeBinding, UboHandle);
|
||||
}
|
||||
GL.BindBufferBase(BufferRangeTarget.UniformBuffer, FreeBinding, UboHandle);
|
||||
}
|
||||
|
||||
FreeBinding++;
|
||||
|
|
Loading…
Add table
Reference in a new issue