Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use signed arithmetic to avoid underflow when shrinking window. #243
The underflow occurs when the y co-ordinate of
The problem is the calculated layer_origin y is negative, but we calculate it using unsigned ints, and then cast to signed just for the gl calls. The two places where this calculated value is used are
The other options would be to require the above doesn't happen, either by using an outdated bigger framebuffer size (which results in the contents of the window moving upwards as the window shrinks), or recalling
If I'm reading travis correctly it's still failing on the pinned nightly version, but it's using the old configuration still, e.g.