Re: glReadPixels with null pointer
"Mike C. Fletcher" <[email protected]> Thu, 05 Sep 2013 09:03:33 -0400
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net