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];
|
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++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue