Re: [PyOpenGL-Devel] glReadPixels with null pointer
Brought to you by:
mcfletch
|
From: Mike C. F. <mcf...@vr...> - 2013-09-05 13:03:41
|
On 13-09-04 08:05 PM, Tim Sheerman-Chase wrote: ... > > That seems sensible to me. However, I am still having problems with the > current trunk version #623 when using glReadPixels in the previously > described situation. I did a quick hack to try to fix it but I am unsure > if this does not break something else. > https://code.launchpad.net/~thetourist/pyopengl/tim2 > > My code breaks if the ctypes pointer created by ctypes.c_void_p is > passed through arrayType.voidDataPointer. I have skipped this step. I am > a little unclear as to what what would be returned in each of the cases > and it might be worth checking. Ah, the problems of fixing code without a test case to run :D . You are correct, the voidDataPointer call should only be happening in cases where the data is *not* a c_void_p, the whole point of that being to create a c_void_p out of an array data type. Merged, thanks, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |