Merge branch 'dev' of github.com:bloeys/nmage into dev

This commit is contained in:
bloeys
2021-11-27 22:20:43 +04:00

View File

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