On Thu, Nov 6, 2008 at 12:10 AM, josch <[EMAIL PROTECTED]> wrote:
>
> thank you very much! this works like a charm!
>
> I can now batch.add() empty lists, I can resize empty lists to any
> other value and I can resize normal vertex lists to zero!
>
> But to get the code run on debian lenny+intel gfx here I had to add
> the following patch:
>
> Index: pyglet/gl/xlib.py
> ===================================================================
> --- pyglet/gl/xlib.py (revision 2343)
> +++ pyglet/gl/xlib.py (working copy)
> @@ -15,6 +15,8 @@
> from pyglet.gl import glx
> from pyglet.gl import glxext_arb
> from pyglet.gl import glx_info
> +from pyglet.gl import glxext_mesa
> +from pyglet.gl import glxext_arb
>
> class XlibConfig(Config):
> def match(self, canvas):
> @@ -29,10 +31,7 @@
> if have_13:
> config_class = XlibCanvasConfig13
> else:
> - if 'ATI' in canvas.display.info.get_client_vendor():
> - config_class = XlibCanvasConfig10ATI
> - else:
> - config_class = XlibCanvasConfig10
> + config_class = XlibCanvasConfig10
>
> # Construct array of attributes
> attrs = []
> @@ -120,7 +119,7 @@
> x_screen = canvas.display.x_screen
>
> self._visual_info = glx.glXChooseVisual(
> - x_display, x_screen_id, attrib_list)
> + x_display, x_screen, attrib_list)
> if not self._visual_info:
> raise gl.ContextException('No conforming visual exists')
>
>
> I deleted canvas.display.info.get_client_vendor() because canvas was
> None - this was also the reason for an error on exiting the program:
>
> File "/home/josch/fheroes3/heroes rebirth/pyglet/gl/xlib.py", line
> 260, in set_current
> glx.glXMakeCurrent(self.x_display, self.canvas.x_window,
> AttributeError: 'NoneType' object has no attribute 'x_window'
Thanks; GLX 1.1 implementation is fixed now.
Alex.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
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
-~----------~----~----~----~------~----~------~--~---