Re: [PyOpenGL-Users] access violation when calling glGenFramebuffers
Brought to you by:
mcfletch
From: David V. <cod...@ha...> - 2013-04-16 02:05:10
|
On 4/15/2013 3:55 PM, David Vierra wrote: > On 4/15/2013 3:30 PM, Mike C. Fletcher wrote: > >> It also didn't cause problems on my 64-bit Windows 7, and it seems >> correct, the return type *should* be a void pointer. I gather it was >> working for the other drivers because the next 4 bytes were always NULL >> with the other drivers. >> >> bzr head has the fix. >> >> HTH, >> Mike > Thanks Mike! > > But I'm afraid bzr head is slightly broken ;) > > File "c:\Users\Rio\Documents\src\pyopengl\OpenGL\platform\win32.py", > line 67, in Win32Platform > getExtensionProcedure.restype = ctypes.c_void_p > > AttributeError: 'staticmethod' object has no attribute 'restype' > > > Sorry, I should have added that changing it to this line makes it work for me: OpenGL.wglGetProcAddress.restype = ctypes.c_void_p Also, test_core.py runs without any errors after this change is made. - David Vierra |