Re: [PyOpenGL-Users] bug in glDrawBuffers?
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2009-02-18 16:20:28
|
Gijs wrote: ... > I was running 3.0.0b8 and after I upgraded to the latest version, > 3.0.0c1, the glDrawBuffers call worked perfectly :). The casting was > however still required. The type fbo was <type 'numpy.uint32'>. It > failed with: ... > 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 :) . Thanks, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |