Update VAOs to support 4.1

This commit is contained in:
bloeys
2021-11-22 12:02:47 +04:00
parent 616daaf97d
commit 387e610972

View File

@ -153,7 +153,7 @@ func (bo *BufferObject) Deactivate() {
func NewBufferObject() *BufferObject {
var vaoID uint32
gl.CreateVertexArrays(1, &vaoID)
gl.GenVertexArrays(1, &vaoID)
if vaoID == 0 {
logging.ErrLog.Println("Failed to create openGL vertex array object")
}