Tristam MacDonald wrote:
> On Sun, Jun 7, 2009 at 9:56 AM, John Lehmann <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     Hi,
>
>     Running the simpleui demo.py, I encounter an error on clicking to
>     collapse the second folding box.
>
>       File "demo.py", line 103, in on_draw
>         frame.draw()
>       File "simplui/frame.py", line 107, in draw
>         self.batch.draw()
>       File "pyglet/graphics/__init__.py", line 538, in draw
>         func()
>       File "pyglet/graphics/__init__.py", line 470, in <lambda>
>         (lambda d, m: lambda: d.draw(m))(domain, mode))
>       File "pyglet/graphics/vertexdomain.py", line 717, in draw
>         primcount)
>     ctypes.ArgumentError: argument 4: <type 'exceptions.TypeError'>:
>     expected LP_c_void_p instance instead of c_ulong_Array_2
>
>     This is from svn r42, against pyglet svn r2448, on some modern imac.
>
>     It seems to be (from copying the contents of the third folding box
>     over he second and other experiments in copy-paste debugging)
>     something to do with the middle position itself rather than the
>     contents of the box... but at that point I was defeated.
>
>
> I think that is probably an issue with using the pyglet from SVN trunk 
> - I do all development against the 1.1 maintenance branch.

Correct.  The trunk version and 1.1.3 both have this problem.  I've 
tracked it down and submitted a pyglet bug report. 

Meanwhile there is an easy workaround: 
In file pyglet/graphics/vertexdomain.py, disable the failing branch of 
the if statement
by changing line
         elif gl_info.have_version(1, 4):
to
         elif False:
or just delete that elif and its whole clause. 

The deleted code is an attempt to use a newer more efficient feature for 
drawing, but it's incorrectly coded.   Deleting it allows the following, 
older (and correct) code to draw.

Gary Herron



>
> I don't know if this has changed, but in the past the SVN trunk had 
> very little in common with the 1.1 branch.
>
> -- 
> Tristam MacDonald
> http://swiftcoder.wordpress.com/
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to