Add all gl BufUsage values+support bufusage in ubo

This commit is contained in:
bloeys
2024-09-15 16:29:54 +04:00
parent 3cdd40f0a2
commit 5c98903723
5 changed files with 39 additions and 14 deletions

View File

@ -151,7 +151,7 @@ func NewMesh(name, modelPath string, postProcessFlags asig.PostProcess) (Mesh, e
indexBufData = append(indexBufData, indices...)
}
vbo.SetData(vertexBufData, buffers.BufUsage_Static)
vbo.SetData(vertexBufData, buffers.BufUsage_Static_Draw)
ibo.SetData(indexBufData)
mesh.Vao.AddVertexBuffer(vbo)