Fix regression

This commit is contained in:
ReinUsesLisp 2018-08-08 01:16:21 -03:00
commit b3972745d5

View file

@ -297,13 +297,10 @@ namespace Ryujinx.Graphics.Gal.OpenGL
{ {
long Key = S.ConstBufferKeys[(int)Stage.Type][DeclInfo.Cbuf]; 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++; FreeBinding++;
} }