You have to link the SwapBuffers method in the wgl module. Add the line:
SwapBuffers = _link_function('SwapBuffers', BOOL, [HDC], None)
On Monday, July 30, 2012 12:03:12 AM UTC-7, Andreas Schiefer wrote:
>
> On Thu, Jul 26, 2012 at 8:10 PM, Taylor Gordon
> <[email protected]<javascript:>>
> wrote:
> > Moreover, if I replace the wglSwapLayerBuffers call with the
> > more standard SwapBuffers call, everything works correctly (60fps).
>
> What have you changed exactly to get it working with SwapBuffers?
> I tried replacing the line
> wgl.wglSwapLayerBuffers(self.canvas.hdc, wgl.WGL_SWAP_MAIN_PLANE)
> with
> wgl.SwapBuffers(self.canvas.hdc)
>
> But I always get the error
> pyglet.gl.lib.MissingFunctionException: SwapBuffers is not
> exported by the available OpenGL driver.
> with current Nvidia and Intel drivers.
>
> This may of course be a bug in pyglets wrapper or be related to the
> dynamic linking issue Andre pointed out, but I'm curious how you got
> it working?
>
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pyglet-users/-/XB8ZJWMxbiMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en.