Fix the use of glCreateXXX (4.2) instead of glGenXXX (1.0).

This commit is contained in:
2026-08-11 10:07:11 +03:00
parent 7bf7b6c53c
commit 01d7f27dc7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ namespace Dashboard.OpenGL.Drawing
{
if (_vao == -1)
{
GL.CreateVertexArray(out _vao);
GL.GenVertexArray(out _vao);
}
}
+2 -2
View File
@@ -11,11 +11,11 @@ namespace Dashboard.OpenGL
public BufferAccessPattern AccessPattern { get; } = pattern;
public long Size { get; private set; } = size;
public long Offset { get; private set; } = offset;
public int Handle { get; private set; }
public int Handle { get; private set; } = handle;
public void Reallocate(long newSize)
{
GL.CreateBuffer(out int handle);
GL.GenBuffer(out int handle);
GL.BindBuffer(BufferTarget.ArrayBuffer, handle);
GL.BufferData(BufferTarget.ArrayBuffer, (nint)newSize, (nint)0, AccessPattern switch
{