Re: [PyOpenGL-Users] bug in glDrawBuffers?
Brought to you by:
mcfletch
From: René D. <re...@gm...> - 2009-03-20 06:44:55
|
Hi, I tried with python2.5.2 (preinstalled python) and python2.5.4 on osx 10.5.6 and it fails with both. I made a small pyrex wrapper of the functions, and dropped them into the test, and they worked. So I'm guessing it's a ctypes issue of some sort maybe. cu, On Mon, Feb 23, 2009 at 2:01 AM, Gijs <in...@bs...> wrote: > On 2/22/09 5:43 AM, Mike C. Fletcher wrote: >> Mike C. Fletcher wrote: >>> Gijs wrote: >> ... >>> ... >>>> ctypes.ArgumentError: argument 2: <type 'exceptions.TypeError'>: >>>> wrong type >>>> >>>> I tend to cast everything that needs to be passed to OpenGL and is >>>> returned from OpenGL functions (like the genTextures and >>>> genFramebuffers function). Guess I kinda got used to it but I knew >>>> it wasn't normal. >>> Okay, that would seem to be final confirmation that we have bugs in >>> handling of numpy uints on 32-bit platforms. Luckily we now have a >>> test-case I can run to provoke it :) . >> Can you confirm that the machine exhibiting the problem is running >> something less than Python 2.5.2? I can duplicate the effect on my >> 32-bit Vista machine *only* if I downgrade to 2.5.1. Thinking back on >> it, this must be the bug that we discovered which had us add the >> ALLOW_NUMPY_SCALARS flag to the OpenGL.__init__ module. Thomas had >> said he was intending to fix it in ctypes, and it looks like he did >> just that in 2.5.2. 2.5.4 does not exhibit the problem. >> >> Assuming that you can confirm it seems we'll either have to tell >> people to use >= 2.5.2 and/or document the use of ALLOW_NUMPY_SCALARS >> for those weird cases where for some reason someone needs to use an >> older version. Will need to test with Python 2.4 and/or stand-alone >> ctypes to determine the versions to recommend. >> >> Thanks, >> Mike >> > It's running Python 2.5.1. It is the standard version of Python that got > delivered with Mac OS X 10.5. So unless people upgraded to a higher > version of Python, it should affect everyone that's running Mac OS X 10.5. > > Regards, Gijs > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > |