We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 431d117 commit 07c1cafCopy full SHA for 07c1caf
src/Lab/Triangle/Program.cs
@@ -65,7 +65,7 @@ private static unsafe void Load()
65
_shader.Use();
66
_vertexArrayObject = _gl.GenVertexArray();
67
_gl.BindVertexArray(_vertexArrayObject);
68
- _gl.VertexAttribPointer(0, 3, GLEnum.Float, false, 3 * sizeof(float), 0);
+ _gl.VertexAttribPointer(0, 3, GLEnum.Float, false, 3 * sizeof(float), null);
69
_gl.EnableVertexAttribArray(0);
70
_gl.BindBuffer(GLEnum.ArrayBuffer, _vertexBufferObject);
71
}
0 commit comments