Re: access violation when calling glGenFramebuffers
David Vierra <[email protected]> Mon, 15 Apr 2013 16:05:01 -1000
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net