1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-10-01 12:30:00 +02:00

Fix vertex buffer handle null check (#1638)

This commit is contained in:
gdkchan 2020-10-25 21:40:50 -03:00 committed by GitHub
parent 812e32f775
commit c9841dab38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ namespace Ryujinx.Graphics.OpenGL
{
VertexBufferDescriptor vb = vertexBuffers[index];
if (vb.Buffer.Handle != null)
if (vb.Buffer.Handle != BufferHandle.Null)
{
GL.BindVertexBuffer(bindingIndex, vb.Buffer.Handle.ToInt32(), (IntPtr)vb.Buffer.Offset, vb.Stride);
@ -129,7 +129,7 @@ namespace Ryujinx.Graphics.OpenGL
continue;
}
if (_vertexBuffers[attrib.BufferIndex].Buffer.Handle == null)
if (_vertexBuffers[attrib.BufferIndex].Buffer.Handle == BufferHandle.Null)
{
GL.DisableVertexAttribArray(attribIndex);