Open cbaggers opened 7 years ago
not sure if this is related but
(%gl:bind-buffer :array-buffer 1)
only works because there is a single VBO for the entire time, named 1
(let ((the-vbo (aref (slot-value (env-vao *env*) 'kit.gl.vao::vbos) 0)))
(%gl:bind-buffer :array-buffer the-vbo))
Hey @gregcman ! I wanted to look at your linked example, but it appears to be removed from github. Is it available on a branch somewhere?
I think it can be found here: https://github.com/gregcman/sucle/tree/1e95ca02beabc624f9f6c89308217de4229d7817/application/subsystems/sketch-sucle
In the guide here http://onrendering.blogspot.no/2011/10/buffer-object-streaming-in-opengl.html it shows that after orphaning the buffer you need to reset your vao. In sketch currently it is only rebound.
instead something like this should be added to glkit
and this be called from start-draw, as in:
This has been working but I think only because there is only one vao.