Re: [PyOpenGL-Users] Having a problem with glBufferData
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2009-09-01 19:25:22
|
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 -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |