Fix regression

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

View file

@ -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++;