Re: [PyOpenGL-Users] glBufferSubData BUG REPORT
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2012-01-31 15:21:24
|
On 12-01-23 06:36 AM, Hans Wurst wrote: > Hello list, > > I found a bug in glBufferSubData while doing the following call: > glBufferSubData(target, offset, np.array((0.5,), dtype=float32)) I've altered the signature and the code slightly so that the code now implements precisely what the documentation said it did; i.e. only considers ints or longs valid sizes, while previously anything that could be converted to ints/longs would be considered a size (a single-item array being something that will convert without a TypeError). Should come out with the next alpha release. ... > Workaround for users: Just give the size on your own (np.array.nbytes) > Solution: I recommend adding these 3 lines right before the try-block: > if data is None: > data = size > size = None > > I hope this helps making PyOpenGL better. > [Sorry if I got the wrong mailing list :(] This is fine as a place to report errors. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |