The cube demo now works. GL bindings are hard to debug, turns out, particularly if you don't know GL.