Re: glBufferSubData BUG REPORT

"Mike C. Fletcher" <[email protected]>
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
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


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.