mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
Update VAOs to support 4.1
This commit is contained in:
@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user