I set up a display with the default mode instead of OPENGL. I put
together a quick "bouncing ball" example so I could see Pygame running.
Then I put the OpenGL functions into the startup section (i.e. resize()
and init() from the NEHE example). No problem. I put the draw() function
into the main loop, and again no problem.
So I started trying to get the OpenGL buffer and draw it to a surface.
These two functions *seem* to be doing something like that:
pixels = glReadPixels(0,0,640, 480, GL_RGB,GL_UNSIGNED_BYTE)
glsurf = pygame.image.fromstring(pixels, (640, 480), 'RGB', 1)
I tried to blit that to the screen, and just got a big black screen.