Code example as follows
# draw scene
red = glReadPixelsub(0,0, self.width, self.height,
# draw different scene
pixels = glReadPixelsub(0,0, self.width, self.height,
pixels[:,:, 0] = red
pixels.shape = (self.height, self.width, 3)
If run for more than a minute (at full screen, 1600x1200)
resolution, this code snippet will cause Python to crash.
Watching memory allocation to this process shows that
memory held increase up until crash.
Tests using a similar version of the code but replacing
the above with a version using the GL accumulate buffer
does not crash.
This happens on both WinXP and Linux (Gentoo).