Re: [PyOpenGL-Users] Having a problem with glBufferData
Brought to you by:
mcfletch
From: Gijs <in...@bs...> - 2009-09-11 21:31:05
|
On 11-9-2009 20:03, Mike C. Fletcher wrote: > Mike C. Fletcher wrote: > >> Gijs wrote: >> >> >>> Hey List, >>> >>> I'm trying to use PBOs for the first time so I'm not completely aware >>> of what I'm doing with the code I found on this site >>> <http://www.mathematik.uni-dortmund.de/%7Egoeddeke/gpgpu/tutorial3.html>. >>> One thing I do know is that the code I can execute in C, I cannot >>> execute in Python. This has to do with a piece of code that makes use >>> of glBufferData and its 4th argument, namely "size". >>> >>> >> This looks like a real API failing in the wrapper. Basically I didn't >> realize that passing in a NULL with a real size was valid when I did >> that wrapper, now even if I didn't I likely wouldn't have wrapped it >> quite that way (i.e. I would have made a wrapper that allowed passing >> size or not, instead of always taking size from the array). Will have >> to rework the function's wrapper to allow passing in size explicitly. >> >> Thanks for pointing out the problem, >> Mike >> >> > I've finally got the fix for this published on PyPI. (i.e. a new alpha > release of PyOpenGL is up) > > Take care, > Mike > > Great, thanks for the fix, Gijs |