nodebox/nodebox-opengl

background coordinates wrong

Closed this issue · 1 comments

For some reason background() is one covering part of the window

canvas.size = 1024, 768
canvas.run()

-- then in draw()

background(0, 0, 0, 1)

Just covers a small rectangle - when I add some debug

        xywh = (GLint*4)(); glGetIntegerv(GL_VIEWPORT, xywh); x,y,w,h = xywh
        print x, y, w, h

I get:

0 0 640 480

Which seems odd, am on Ubuntu 64 bit 15.10, Nvidia optimus, have ran under proprietary and nouveau with same results.

Doh - I had badly patched pyglet :/